Skip to content

Conversation

@mitinarseny
Copy link
Contributor

@mitinarseny mitinarseny commented Feb 2, 2026

Proposal to add chain_id as a host function in the runtime.

NEP text: https://github.com/mitinarseny/NEPs/blob/feat/chain_id/neps/nep-0638.md

@mitinarseny mitinarseny changed the title chain_id host function NEP-638: chain_id host function Feb 2, 2026
@mitinarseny mitinarseny marked this pull request as ready for review February 2, 2026 20:49
@mitinarseny mitinarseny requested a review from a team as a code owner February 2, 2026 20:49
@frol
Copy link
Collaborator

frol commented Feb 3, 2026

I vaguely remember that there was a discussion in the early days of NEAR Protocol, and we excluded such a host function in a fear that it will be misused and cause more incidents due to contract code relying on testnet vs mainnet behavior.

I am not against adding this host function. I just wanted to provide some context I recalled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: NEW❗
Status: NEW

Development

Successfully merging this pull request may close these issues.

2 participants