As the native implementation of the Cannon emulator must be equivalent to the on-chain version, we'll need to add EVM tests. This will involve porting Cannon's evm_test.go and fuzz_evm_test.go tests into the cannon-mipsevm crate.
Advice
Use revm and turn USE_GAS off for faster execution. We only need to assert correctness, so gas accounting will just slow these tests down.
Overview
As the native implementation of the Cannon emulator must be equivalent to the on-chain version, we'll need to add EVM tests. This will involve porting Cannon's
evm_test.go
andfuzz_evm_test.go
tests into thecannon-mipsevm
crate.Advice
revm
and turnUSE_GAS
off for faster execution. We only need to assert correctness, so gas accounting will just slow these tests down.