This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// CREATE2 proxy for constantinople/petersburg which allows easy deploying of | |
// contracts using the same address on multiple chains. | |
// | |
// Idea by @Arachnid. Some code by @axic. | |
pragma solidity ^0.5.0; | |
contract Create2Proxy { | |
function() external payable { | |
assembly { |