New answers tagged

1

Yes, you do need to change function Contract (... to constructor(... because this is the new way to indicate the constructor. There is nothing else you need to do in the Factory to invoke the constructor. The constructor always runs one time on deployment, regardless of how the contract is deployed. It cannot be prevented/avoided even if you want to. In ...


0

Here MaintainableUpgradeabilityProxy is name of contract so what is it returning a contract address? Yes. The difference between doing this and returning an address is that if another contract calls this method, then it will receive that contract instance. It's equivalent to returning the address of the contract and then doing ...


2

function Donations() private { This is not the same name as the contract, which would be the old style of constructor. If you rename to Donation(), the compiler will probably recognize you intend for this to be a constructor and warn you that the syntax should be changed to the new explicit form: constructor() public { There may be other issues, but your ...


0

I wrote an article about how to do just this! You can use remixd and remix to test and debug your contracts with a GUI (remix). The steps to do this are: Install remixd with npm install -g remixd Run remixd with remixd -s <absolute-path> --remix-ide https://remix.ethereum.org Attach your project to remix.ethereum.org Run ganache-cli in the terminal ...


0

I wrote an article about how to do just this! You can use remixd and remix to test and debug your contracts with a GUI (remix). The steps to do this are: Install remixd with npm install -g remixd Run remixd with remixd -s <absolute-path> --remix-ide https://remix.ethereum.org Attach your project to remix.ethereum.org Run ganache-cli in the terminal ...


Top 50 recent answers are included