CRYPTO NEWS

NFT communities greenlight Web3 films: A decentralized future for fans and Hollywood

How to call a contract within smart contract?

I need solidity analog of web3 command: const contract = new web3.eth.Contract(contractJSON.abi, deployedAddress) The context is: Contract A call contract B Contract B receives an address of contract A instance which calls contract B Contract B by this address restore the instance of contract A including its custom inner state. Contract B call some public::Listen

I need solidity analog of web3 command:

const contract = new web3.eth.Contract(contractJSON.abi, deployedAddress) 

The context is:

  1. Contract A call contract B
  2. Contract B receives an address of contract A instance which calls contract B
  3. Contract B by this address restore the instance of contract A including its custom inner state.
  4. Contract B call some public functions of Contract A for the defined purpose

Here is details on oppen zeppelin forum. Please note as abi is mandatory we are talking about the case when both Contract A and Contract B source code is available.

NFT communities greenlight Web3 films: A decentralized future for fans and Hollywood

Shopping cart
There are no products in the cart!
Continue shopping
0