-
Notifications
You must be signed in to change notification settings - Fork 85
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 LightClientArbitrum #2423
Add LightClientArbitrum #2423
Conversation
d47f297
to
5746ef8
Compare
additionally, we'll need to create another issue to deal with adding upgradeable deployment scripts for LightClientArbitrum.sol and upgrading LightClient.sol. In that issue, we should consider versioning as mentioned here https://github.com/EspressoSystems/espresso-sequencer/blob/main/doc/smart-contract-upgrades.md |
|
function setUp() public { | ||
vm.createSelectFork("https://arb1.arbitrum.io/rpc"); | ||
mockArbsys = new MockArbSys(); | ||
vm.etch(address(100), address(mockArbsys).code); // Replace address(100) with mock |
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.
Note: this is important because foundry doesnt support arbitrum pre-compiles so we have to mock them in tests
3b0577c
to
56ab328
Compare
…into fix-light-client-contract-for-arb-sepolia
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!
we'd need to add the LightClientArbitrum
contract to the just gen-bindings
command but that can be handled in the next github issue #2436
Replacing block.number in arbitrum because it returns the block number of eth instead of arbitrum
Discussion here