Skip to content

Comments

Attempt to fix deposit/withdrawal tests#48

Merged
mslipper merged 1 commit intooptimismfrom
bugfix/wd-reliability-2
Sep 28, 2022
Merged

Attempt to fix deposit/withdrawal tests#48
mslipper merged 1 commit intooptimismfrom
bugfix/wd-reliability-2

Conversation

@mslipper
Copy link

@mslipper mslipper commented Sep 28, 2022

I narrowed this issue down to reverts during deposits. It seems like the default gas limit calculation under-estimates the limit sometimes which leads to deposits reverting without a reason. I'm not 100% sure why this is, but I have a hunch it's related to the ResourceMetering contract since specifying a high manual gas limit resolved the issue. I'll follow up with @tynes to dig deeper into whether this is correct, and understand the root cause.

To test this, I ran the tests 3 times against CI and got passes each time.

I also updated the WaitReceipt helper to properly check the status of each transaction.

Fixes ENG-2726

I narrowed this issue down to reverts during deposits. It seems like the default gas limit calculation under-estimates the limit sometimes which leads to deposits reverting without a reason. I'm not 100% sure why this is, but I have a hunch it's related to the `ResourceMetering` contract since specifying a high manual gas limit resolved the issue. I'll follow up with @tynes to dig deeper into whether this is correct, and understand the root cause.

To test this, I ran the tests 3 times against CI and got passes each time.

Fixes ENG-2726
@tynes
Copy link

tynes commented Sep 28, 2022

This is a bandaid, attempted real solution here: ethereum-optimism/optimism#3589
Would prefer to leave this failing to test out actual solutions

@mslipper mslipper merged commit 836abcc into optimism Sep 28, 2022
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