Skip to content

fix(genesis): compute the deploy account contract address - #4078

Open
zexoverz wants to merge 2 commits into
NethermindEth:mainfrom
zexoverz:fix/3741-genesis-deploy-account
Open

zexoverz wants to merge 2 commits into
NethermindEth:mainfrom
zexoverz:fix/3741-genesis-deploy-account

Conversation

@zexoverz

Copy link
Copy Markdown

Closes #3741

The DEPLOY_ACCOUNT branch in executeTransactions was copying SenderAddress into ContractAddress, and that field is never set for this transaction type, so the core txn went to the VM with a nil address. This computes it with core.ContractAddress the same way the RPC handlers do (deployer zero, class hash, salt, constructor calldata). The test drives the genesis path with a mock VM and checks the txn handed to BuildBlock carries that address. It fails on main with the nil assertion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

genesis: DeployAccount transactions get a nil ContractAddress in executeTransactions

1 participant