Skip to content

Commit

Permalink
ethereum: use create2 for wrapped assets
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikhofstadt committed Aug 28, 2020
1 parent 5a72d90 commit a9dee7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethereum/contracts/Wormhole.sol
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ contract Wormhole is ReentrancyGuard {
mstore(clone, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
mstore(add(clone, 0x14), targetBytes)
mstore(add(clone, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
asset := create(0, clone, 0x37)
asset := create2(0, clone, 0x37, seed)
}

// Call initializer
Expand Down

0 comments on commit a9dee7d

Please sign in to comment.