You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unlike ethers.js (5.7.2), web3.py does not include a utility method to deterministically determine the contract address from the inputs of CREATE and CREATE2 opcodes.
How can it be fixed?
The address of a CREATE opcode deployed contract can be determined as a function of its sender and its respective nonce:
new_address=hash(sender, nonce)
And the address of a CREATE2 opcode deployed contract can be determined as a function of a constant 0xFF, its sender, an arbitrary value salt and the contract's bytecode:
new_address=hash(0xFF, sender, salt, bytecode)
The text was updated successfully, but these errors were encountered:
What was wrong?
Unlike
ethers.js
(5.7.2),web3.py
does not include a utility method to deterministically determine the contract address from the inputs ofCREATE
andCREATE2
opcodes.How can it be fixed?
The address of a
CREATE
opcode deployed contract can be determined as a function of its sender and its respective nonce:And the address of a
CREATE2
opcode deployed contract can be determined as a function of a constant0xFF
, its sender, an arbitrary valuesalt
and the contract's bytecode:The text was updated successfully, but these errors were encountered: