Calling function of deployed contract

gkucmierzgkucmierz Member Posts: 13
Lets say:

I have deployed contract with address $addr1.
This contract have method named "method1" which accepts 1 parameter uint.

Now I am creating another contract.
How to call "method1" now from $addr1 using new contract.
As I guess new contract should have encoded ABI of first contract or am I wrong?

How to do that?


  • elena_dielena_di Member Posts: 2
    Yes, the new contract should import of the first contract as:
    `import "FirstContract.sol";`
    which will encode the ABI of the first contract and allow you to do
    var c =$addr1);
Sign In or Register to comment.