ethereum: use create2 for wrapped assets

This commit is contained in:
Hendrik Hofstadt 2020-08-28 08:34:53 +02:00
parent 5a72d9029a
commit a9dee7da99
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ contract Wormhole is ReentrancyGuard {
mstore(clone, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(clone, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
mstore(add(clone, 0x14), targetBytes) mstore(add(clone, 0x14), targetBytes)
mstore(add(clone, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) mstore(add(clone, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
asset := create(0, clone, 0x37) asset := create2(0, clone, 0x37, seed)
} }
// Call initializer // Call initializer