Open vnxz opened 2 years ago
Hey, did you find any solution. Facing the same issue.
hi all, i notice that sometimes, when tohex in called to a double number, toBn return an array, so this is the error on "Call to a member function toHex() on array". Any suggestions?
@vnxz you can use ->call('transfer', $toaddress, new BigInteger($amount)) to fix this error
@vnxz you can use ->call('transfer', $toaddress, new BigInteger($amount)) to fix this error
$amount 若是浮点数,BigInteger返回内容是空的。
I try to use contract method by web3.php
when call balanceof() ,it is ok. when call transfer function , not ok ,
what is that error, I try to transfer all balance of contract to another address, here is contract code