Una función de contrato inteligente necesita acceder al contrato de su mismo tipo con la dirección de implementación del contrato. Aquí está la definición del contrato:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract MyContract {
function bid(address _anotherMyContractAddress) external returns (bool) {. //_anotherMyContractAddress is the deploy address
//generate smart contract from its address
MyContract _mycon = MyContract(_anotherMyContractAddress); //is this the right way???. The code seems not working when calling function bid
//do something with _mycon
return true;
}
}