web3p / web3.php

A php interface for interacting with the Ethereum blockchain and ecosystem. Native ABI parsing and smart contract interactions.
MIT License
1.16k stars 543 forks source link

Please make sure you have put all function params and callback. #355

Open satriawisesa03 opened 5 months ago

satriawisesa03 commented 5 months ago
$contract->at($contractAddress)->send('createSertifikat',[$nama, $deskripsi, $base64Image], function ($err, $txHash) {
    if ($err !== null) {
        dd($err->getMessage());
    }
    echo 'Transaction Hash: ' . $txHash;
});

still got an error InvalidArgumentException Please make sure you have put all function params and callback.