Hello guys. I have a crowdsale contract which creates an erc20 token and sells it simultaneously. So my erc20 token is created by another contract, not msg.sender. My question is, how will I access functions in the erc20 contract?
Oct 12, 2020, 9:27 PM
Should I use call or delegatecall?
Oct 12, 2020, 10:24 PM
https://ethereum.stackexchange.com/questions/3667/difference-between-call-callcode-and-delegatecall
Oct 12, 2020, 10:38 PM
Normally, it's like any other contract. Only if you have functionality which requires some sort of owner access then the owner is probably the contract so that has to execute such functionalities
Oct 13, 2020, 4:27 AM
But I can't directly access functions in erc20 contract
The erc20 contract is created by crowdsale contract
I can access only functions in crowdsale
Oct 13, 2020, 4:30 AM
It doesn't matter who creates a contract unless you have coded some functionality there which depends on msg.sender
Oct 13, 2020, 4:30 AM
Ok thanks
Oct 13, 2020, 4:31 AM
oh, sure, it's an array. so [1,2,6]
Oct 13, 2020, 5:16 AM