• Matthew Slipper's avatar
    op-chain-ops: Do not manually copy balance in WipePredeployStorage · 5e11bb1b
    Matthew Slipper authored
    `db.CreateAccount` copies over the balance, but wipes nonces. The previous version of this code manually copied the balance after calling `db.CreateAccount`, which effectively doubled the predeploy's balance. None of the L2 predeploys carried balances on Goerli, however to prevent ETH from being created and destroyed during the migration this PR removes the manual balance migration and adds a test to ensure that nonces are copied and state is properly wiped.
    
    Fixes CLI-3443
    5e11bb1b
Name
Last commit
Last update
..
cmd Loading commit data...
crossdomain Loading commit data...
db Loading commit data...
deployer Loading commit data...
eof Loading commit data...
ether Loading commit data...
genesis Loading commit data...
immutables Loading commit data...
state Loading commit data...
.gitignore Loading commit data...
Dockerfile Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...