Content
@
https://opensea.io/collection/evm-6
0 reply
0 recast
2 reactions
maurelian
@maurelian.eth
Optimism has a pretty monstrous solidity codebase at this point, including a ton of tests and scripts. Build times were starting to get pretty horrendous. Something we did that significantly improved the speed is to use this pattern of using `vm.getDeployedCode()` and `vm.etch()`. This compiles MUCH faster than the `new SomeContract()` syntax, because the script/test doesn't need to wait for the contract being deployed to compile first.
0 reply
0 recast
12 reactions