Skip to content
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

@celo/devchain-anvil/l2-devchain.json does not contain L2 state anymore #11196

Open
shazarre opened this issue Aug 23, 2024 · 0 comments
Open

Comments

@shazarre
Copy link
Contributor

Seems like 12.0.0-canary.0 (and onwards) version of @celo/devchain-anvil does not produce a "valid" L2 devchain anymore

Steps to reproduce:

Starting anvil with L2 devchain

anvil --port 8545 --load-state node_modules/@celo/devchain-anvil/l2-devchain.json

Getting GoldToken address from registry...

$ cast call \
"0x000000000000000000000000000000000000ce10" \
"getAddressForStringOrDie(string calldata identifier)(address)" \
"GoldToken"

0xE5CcBE2a83763747AD50Ff19A69718B7d15d94C2

...to call an example onlyL2 function

$ cast call "0xE5CcBE2a83763747AD50Ff19A69718B7d15d94C2" "allocatedSupply()(uint256)"

Error:
server returned an error response: error code 3: execution reverted: revert: This method is not supported in L1.

Alternatively just trying to fetch 0x4200000000000000000000000000000000000018 code returns 0x

cast rpc eth_getCode "0x4200000000000000000000000000000000000018" "latest"

"0x"
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

No branches or pull requests

1 participant