-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Add CHAINID #182
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 CHAINID #182
Conversation
willmeister
left a comment
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.
LGTM! 👍
|
|
||
| // overwrite call params | ||
| let result := mload(0x40) | ||
| let success := call(gas, addr, 0, callBytes, calldatasize, result, 500000) |
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.
Looks like there are still a lot of remnants from the old hacky way that I missed in updates, but IIRC the last param to call should be 0 instead of that arbitrarily large number.
| let success := call(gas, addr, 0, callBytes, calldatasize, result, 500000) | ||
|
|
||
| if eq(success, 0) { | ||
| revert(0, 0) |
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.
This is just a test, so might not matter, but in general, I think we'll want to revert(result, returndatasize).
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8. - [Release notes](https://github.com/isaacs/ini/releases) - [Commits](npm/ini@v1.3.5...v1.3.8) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Karl Floersch <[email protected]>
* state-migration: Read totalSupply directly from storage * Added trigger for updated dependencies * Removen token bindings --------- Co-authored-by: Javier Cortejoso <[email protected]>
* state-migration: Read totalSupply directly from storage * Added trigger for updated dependencies * Removen token bindings --------- Co-authored-by: Javier Cortejoso <[email protected]>
…182) * fix(primitives): use decode_2718() to gracefully handle the tx type * nit: space
Description
Transpiles CHAINID to a call to ovmCHAINID in the Execution Manager, which simply returns 108. Also removes CHAINID from the Safety Checker whitelist mask.
Metadata
Fixes
Contributing Agreement