Skip to content

Conversation

@K-Ho
Copy link
Contributor

@K-Ho K-Ho commented Jul 9, 2020

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

  • Fixes #YAS-414

Contributing Agreement

@K-Ho K-Ho changed the title add CHAINID Add CHAINID Jul 9, 2020
Copy link

@willmeister willmeister left a 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)

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)

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).

@K-Ho K-Ho merged commit 53d8b03 into master Jul 13, 2020
@K-Ho K-Ho deleted the YAS-414/Uniswap/ChainID branch September 1, 2020 20:32
snario pushed a commit that referenced this pull request Apr 14, 2021
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]>
protolambda pushed a commit to protolambda/optimism that referenced this pull request May 1, 2022
shenkeyao referenced this pull request in EspressoSystems/optimism-espresso-integration Mar 1, 2025
* state-migration: Read totalSupply directly from storage

* Added trigger for updated dependencies

* Removen token bindings

---------

Co-authored-by: Javier Cortejoso <[email protected]>
QuentinI referenced this pull request in EspressoSystems/optimism-espresso-integration Mar 7, 2025
* state-migration: Read totalSupply directly from storage

* Added trigger for updated dependencies

* Removen token bindings

---------

Co-authored-by: Javier Cortejoso <[email protected]>
theochap pushed a commit that referenced this pull request Dec 10, 2025
…182)

* fix(primitives): use decode_2718() to gracefully handle the tx type

* nit: space
Zena-park added a commit to tokamak-network/optimism that referenced this pull request Dec 30, 2025
Zena-park added a commit to tokamak-network/optimism that referenced this pull request Dec 30, 2025
theochap pushed a commit that referenced this pull request Jan 15, 2026
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.

3 participants