I have a problem which I'm trying to figure out for a week I think I'm 90% there.
If I deploy a contract MerchantA
on a private blockchain and retrieve it's contract address
and ABI
through the solidity command line solc --abi MerchantA.sol
and store it.
Where do I enter this ABI & Address in a brand new contract say inside SendMoneyContract
method where calls one of the function of AnimalContract deployed at address 0xrandom
.
The material I'm finding online has been to include both solidity source code in the same file but for my case, I can't do it. Reason being MerchantAContract
is unique for each deployment [each merchant added gets a unique contract`.
So far, from my understanding, I need to include the MerchantA
contract address and ABI. I have no idea how to do it inside the solidity function.