Skip to content

Instantly share code, notes, and snippets.

@axic
axic / Create2Proxy.sol
Created February 28, 2019 22:37
CREATE2 proxy for constantinople/petersburg
// 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 {