Skip to content

Comments

[EVM] e2e test to ensure setting Chain ID works#2448

Open
ionodeionode wants to merge 1 commit intoopentensor:mainfrom
ionodeionode:test/evm-chain-id-final-issue-1031
Open

[EVM] e2e test to ensure setting Chain ID works#2448
ionodeionode wants to merge 1 commit intoopentensor:mainfrom
ionodeionode:test/evm-chain-id-final-issue-1031

Conversation

@ionodeionode
Copy link

Fixes #1031.

This PR adds a comprehensive end-to-end (e2e) test to verify the functionality of the sudo_set_evm_chain_id extrinsic in the admin-utils pallet.

Changes:

  • Added contract-tests/test/eth.chain-id.test.ts.
  • The test verifies that:
    1. Updating the Chain ID via a sudo-level call is correctly reflected when querying the Ethereum RPC (eth_chainId).
    2. The Chain ID can be successfully reset to its original value.
    3. Non-sudo users are unable to change the Chain ID, ensuring security and system integrity.

This ensures that the EVM integration remains consistent with Substrate-level configuration changes.

…rifies that sudo_set_evm_chain_id correctly updates the chain ID returned by Ethereum RPC.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[EVM] e2e test to ensure setting Chain ID works

1 participant