pcaversaccio / fork-testing-evm-compatibility

This repository implements a simple fork test on Optimism that proves that the EVM behaviour of the forked chain is not identically replicated locally.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fork Testing – EVM Compatibility

🕵️‍♂️ Test smart contracts License: WTFPL

This repository implements a simple fork test on Optimism that proves that the EVM behaviour of the forked chain is not identically replicated locally. This can lead to problems due to new opcodes such as PUSH0 which would lead to untested behaviour as the EVM behaviour is not correctly replicated as part of the test suite. The underlying issue is that fork tests are local simulations with accounts, states, and storage slot information fetched from the RPC. This means that one does not get the full behaviour of the chain and therefore cannot identify specific EVM difference problems.

Test

Simply invoke:

forge test

PUSH0-Rollout

image

About

This repository implements a simple fork test on Optimism that proves that the EVM behaviour of the forked chain is not identically replicated locally.

License:Do What The F*ck You Want To Public License


Languages

Language:Solidity 100.0%