Let’s say, I have deployed an ERC20 contract to the main-net. Three days from now, I plan to deploy a crowdsale that inherits from this contract.
To create an interface, I need the contract address for the token & ofcourse, the solidity file.
Now, since, the contract is already deployed, I can get the address directly from etherscan, and since, I have the copy of the token.sol file, I can inherit the methods(read functions). Although, this token.sol file will only be an abstract contract(?), and does not have a migration file(?)
Dec 19, 2020, 2:33 PM
Anything I’m missing, or is this thought the correct approach?
Dec 19, 2020, 2:33 PM
Correct approach
Dec 19, 2020, 2:37 PM
Thanks Iman
The similar approach is applicable for creating contract instance on Web3?
One can get the abi-json file from the build folder, and the address from the deployed address?
The similar approach is applicable for creating contract instance on Web3?
One can get the abi-json file from the build folder, and the address from the deployed address?
Dec 19, 2020, 2:46 PM
Yes
Dec 19, 2020, 2:50 PM