Skip to content

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

Open
karlb wants to merge 1 commit intomainfrom
karlb/regression-test-from-geth
Open

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

Conversation

@karlb
Copy link
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
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.

1 participant