2
votes
Accepted
Assembly 'create2' and 'new' with salt not determining the same address
"0x4" is interpreted as a string, so the two salts are different.
bytes32("0x4") != 4
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
remix × 3245solidity × 2443
contract-development × 490
go-ethereum × 206
web3js × 196
contract-design × 191
blockchain × 189
contract-deployment × 165
erc-20 × 154
metamask × 151
tokens × 145
ether × 124
gas × 104
contract-debugging × 99
truffle × 86
error × 78
solidity-0.8.x × 72
etherscan × 71
transactions × 60
arrays × 60
mapping × 57
contract-invocation × 55
ganache × 55
smart-contract-wallets × 50
dapps × 49