-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add set local chainId Action #69
Conversation
e68420f
to
b36e8df
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking care of this, good job!
@@ -77,7 +75,12 @@ namespace eosio { | |||
// +----------- context ---------+------------- event ---------------+ | |||
check(context_checks(operation, metadata), "unexpected context"); | |||
|
|||
chain_id _chain_id(adapter, adapter.value); | |||
check(_chain_id.exists(), "local chain id singleton not set"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -148,7 +151,7 @@ namespace eosio { | |||
|
|||
bytes dest_chain_id = extract_32bytes(event_data, offset); | |||
check(operation.destinationChainId == dest_chain_id, "destination chain id does not match with the expected one"); | |||
check(CHAIN_ID == dest_chain_id, "destination chain id does not match with the current chain"); | |||
check(local_chain_id == dest_chain_id, "destination chain id does not match with the current chain"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
add set local chain id action.
local chain id isn't hardcoded anymore.