Closed Razorholt closed 2 years ago
Hey there,
You should call with your parameters flatten instead of array, unless the solidity function parameter is struct.
$contract->at($senderAccount)->send('withdrawToken', $tokenAddress,$amountInWholeNumber,$destAccount,$senderOwner, function ($err, $transres) use(&$done) {
if($err) {
echo 'error: ' . $err->getMessage() . "<br>";
} else {
$done = $transres;
}
});
My solidity function:
PHP file:
Result:
Not sure what I'm doing wrong here. Thanks for your help!