Skip to content

Instantly share code, notes, and snippets.

@bjoveski
Created August 9, 2019 20:23
Show Gist options
  • Save bjoveski/c42b34f52522482dc11b92d7643c26cc to your computer and use it in GitHub Desktop.
Save bjoveski/c42b34f52522482dc11b92d7643c26cc to your computer and use it in GitHub Desktop.
import "./Forwarder.sol";
contract ForwarderFactory {
function initForwarder(address destination) public returns (Forwarder forwarder) {
forwarder = Forwarder.new(destination);
}
}
@sibelius
Copy link

sibelius commented Mar 4, 2022

should this be?

import ["./Forwarder.sol"]();

contract ForwarderFactory {
  function initForwarder(address destination) public returns (Forwarder forwarder) {
    forwarder = new Forwarder(destination);
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment