Skip to content

test(celo-revm): add PUSH0 regression test for fee currency debitGasFees#137

Merged
karlb merged 1 commit intomainfrom
karlb/regression-test-from-geth
Mar 24, 2026
Merged

test(celo-revm): add PUSH0 regression test for fee currency debitGasFees#137
karlb merged 1 commit intomainfrom
karlb/regression-test-from-geth

Conversation

@karlb
Copy link
Copy Markdown
Contributor

@karlb karlb commented Mar 4, 2026

Regression test for celo-org/op-geth#484 where fee currency contract calls used a pre-Shanghai EVM configuration, causing PUSH0 (EIP-3855) to fail. Contracts compiled with Solidity >= 0.8.20 emit PUSH0 by default, so debitGasFees/creditGasFees calls would fail.

celo-kona is not affected because the spec is set explicitly via CfgEnv, but this test guards against future regressions using the real Mento StableTokenV2 (USDm) bytecode from Celo mainnet.

I'm not sure how useful this test is, since the problem never happened in celo-kona. So feel free to reject the PR for this reason. It will still live in GitHub to show that celo-kona is unaffected.

Regression test for celo-org/op-geth#484 where fee currency contract
calls used a pre-Shanghai EVM configuration, causing PUSH0 (EIP-3855)
to fail. Contracts compiled with Solidity >= 0.8.20 emit PUSH0 by
default, so debitGasFees/creditGasFees calls would fail.

celo-kona is not affected because the spec is set explicitly via CfgEnv,
but this test guards against future regressions using the real Mento
StableTokenV2 (USDm) bytecode from Celo mainnet.
@karlb karlb force-pushed the karlb/regression-test-from-geth branch from ac4060c to 3799c13 Compare March 4, 2026 17:18
Copy link
Copy Markdown
Contributor

@palango palango left a comment

Choose a reason for hiding this comment

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

Now that we have the test we should merge it. We can always remove it later.

@karlb karlb merged commit 10cf5f7 into main Mar 24, 2026
12 checks passed
@karlb karlb deleted the karlb/regression-test-from-geth branch March 24, 2026 16:30
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.

2 participants