0

What is this factory_ exactly in the following piece of code?

constructor(DSProxyFactory factory_) public {
    factory = factory_;
}

https://gist.github.com/Sowmayjain/5ce5097d5a84f0cc1e1376d6918b25f0#file-proxyregistry-sol-L225

It should be something like uint/address/bytes etc.

1

It's a DSProxyFactory, which is a contract, which is a subtype of address. So you can pass an address to that constructor, and the address you pass is expected to point to a smart contract that implements the public interface described in DSProxyFactory.

  • So just that particular DSProxyFactory contract needs to be deployed on blockchain (to get the address)? – Sowmay Jain Mar 9 at 17:37
  • Yes. (Adding more characters to pass the minimum required.) – user19510 Mar 9 at 20:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.