• Matthew Slipper's avatar
    Improvements/bugfixes to Go forge scripts (#11838) · f84c92cc
    Matthew Slipper authored
    * Improvements/bugfixes to Go forge scripts
    
    Adds some improvements to the Go forge scripts:
    
    - Adds a `GasUsed` field to the `Broadcast` struct so that transaction broadcast utilities can use it for gas estimation. Gas estimation using the RPC will fail when sending transactions in parallel since the state can change significantly between calls.
    - Fixes a bug in the `vm.broadcast` cheatcode where sender nonce were not increased for `vm.CALL`s. This led to a mismatch between the contract addresses generated by the Forge tooling, and what was actually being generated onchain.
    
    * op-chain-ops: isolate broadcast functionality
    
    * review updates
    
    * wrap in broadcast check
    
    * Add nonce tests
    
    * Update op-chain-ops/script/script.go
    Co-authored-by: default avatarprotolambda <proto@protolambda.com>
    
    * Fix test
    
    * op-chain-ops: track broadcast nonce, add sanity checks
    
    ---------
    Co-authored-by: default avatarprotolambda <proto@protolambda.com>
    f84c92cc
Name
Last commit
Last update
..
clients Loading commit data...
cmd Loading commit data...
contracts Loading commit data...
crossdomain Loading commit data...
devkeys Loading commit data...
foundry Loading commit data...
genesis Loading commit data...
script Loading commit data...
solc Loading commit data...
srcmap Loading commit data...
.gitignore Loading commit data...
Makefile Loading commit data...