Please post an example of loading $abi or resolve constructor problem.
I can load $abi but $contract->constructor functions, and events doesn't exist so I got the error below when I try to do estimateGas->('functionName', [params]).
exception: "InvalidArgumentException"
file: "/api/vendor/web3p/web3.php/src/Contract.php"
line: 719
message: "Please make sure the method exists."
Please post an example of loading $abi or resolve constructor problem.
I can load $abi but
$contract->constructor functions, and events
doesn't exist so I got the error below when I try to doestimateGas->('functionName', [params])
.code
Also I checked
getFunctions
and returned empty array likereturn $contract->getFunctions();
.I guess $abi must be formatted before loading but I'm not sure how format it. $abi is just generated from
yarn hardhat compile
.Thank you.