ethereum: PUSH0 test (#3748)

* ethereum: PUSH0 test

* Echo to stderr
This commit is contained in:
Dirk Brink 2024-01-30 11:35:39 -08:00 committed by GitHub
parent 82f18209da
commit bf67227460
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -71,7 +71,7 @@ jobs:
node-version: "16"
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- run: cd ethereum && make test
- run: cd ethereum && make test && make test-push0
ethereum-upgrade:
runs-on: ubuntu-latest

View File

@ -85,5 +85,10 @@ test-identifiers: dependencies
test-forge: dependencies
forge test --no-match-test .*_KEVM # ignore KEVM tests (see PROOFS.md)
# Verify that the contracts do not include PUSH0 opcodes
test-push0: dependencies
forge build --extra-output evm.bytecode.opcodes
@if grep -qr --include \*.json PUSH0 ./build-forge; then echo "Contract uses PUSH0 instruction" 1>&2; exit 1; fi
clean:
rm -rf ganache.log .env node_modules build flattened build-forge ethers-contracts lib/forge-std lib/openzeppelin-contracts