0

Simplified version of my contracts works

MyContract

  • await contract.methods.info().call() Works indicating that there is no error in the MyContract itself.

Launchpad

  • There is no issues when launching MyContract using launchpad contract since I get address to a newly published contract.

The problem is that when I call the contract created with Launchpad contract in JavaScript I get the following error

Uncaught (in promise) Error: Couldn't decode uint256 from ABI: 0x

contract MyContract {
  function info() external view returns(uint min, uint max) {
    return(1, 2);
  }
}

contract Launchpad {

 function launch() public returns(address) {
   MyContract myContractAddress = new MyContract();
   return myContractAddress;
 }

}
Arash Kiani
  • 113
  • 8

0 Answers0