monero-integrations / monerophp

Monero PHP library + JsonRPC Client
MIT License
116 stars 76 forks source link

Error in WalletRpc line 140 #147

Open MwangiJim opened 9 months ago

MwangiJim commented 9 months ago

public function _transform($amount = '0') {

140 return intval(bcmul(number_format($amount,0,'',''), '1000000000000'));

} User

Fatal error: Uncaught ValueError: bcmul(): Argument #1 ($num1) is not well-formed

what could be issue here??

recanman commented 9 months ago

Could you provide some code? What number are you passing? It should be an integer in piconeros converted to a string (no decimals).