Skip to content
This repository was archived by the owner on Apr 11, 2021. It is now read-only.

blocknumber: fix#59

Merged
tynes merged 5 commits intomasterfrom
test/blocknumber
Mar 19, 2021
Merged

blocknumber: fix#59
tynes merged 5 commits intomasterfrom
test/blocknumber

Conversation

@tynes
Copy link
Copy Markdown
Collaborator

@tynes tynes commented Mar 12, 2021

Description

Integration tests for ethereum-optimism/go-ethereum#280
It is expected to fail without the changes in that PR

From optimism integration

$ ./build.sh -s go-ethereum -b bug/fix-blocknumber
$ GETH_L2_TAG=bug_fix-blocknumber ./up.sh

From optimism-integration/integration-tests

$ yarn test:x-domain

Metadata

Fixes

  • Fixes # [Link to Issue]

Contributing Agreement

@snario
Copy link
Copy Markdown
Contributor

snario commented Mar 12, 2021

It is expected to fail without the changes in that PR

Is it possible that you could open a PR in optimism-integration pulling from these two branches and observe the test passing?

const blockNumber = BigNumber.from(returnData[1])

// TODO: this is a bug and needs to be fixed
//assert.deepEqual(info.ethContext.blockNumber, blockNumber.toNumber())
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bug, should be addressed by ethereum-optimism/go-ethereum#271

@tynes tynes force-pushed the test/blocknumber branch from 93b72ab to d028f8d Compare March 17, 2021 22:09
@tynes tynes requested a review from smartcontracts March 18, 2021 19:18
Comment thread contracts/IERC20.sol
Comment thread packages/x-domain/test/ovmcontext.spec.ts Outdated
Comment thread packages/x-domain/test/ovmcontext.spec.ts Outdated
Comment thread packages/x-domain/test/ovmcontext.spec.ts Outdated
})

it('should return same timestamp and blocknumbers between `eth_call` and `rollup_getInfo`', async () => {
// As atomically as possible, call `rollup_getInfo` and OVMMulticall for the
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs better explanation of why the atomicity here is necessary.

@smartcontracts
Copy link
Copy Markdown
Contributor

I think this is fine to merge. Nothing else really blocking here.

@tynes tynes merged commit 6f5e51a into master Mar 19, 2021
@tynes tynes deleted the test/blocknumber branch March 19, 2021 23:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants