Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in WalletRpc line 140 #147

Open
MwangiJim opened this issue Dec 4, 2023 · 1 comment
Open

Error in WalletRpc line 140 #147

MwangiJim opened this issue Dec 4, 2023 · 1 comment

Comments

@MwangiJim
Copy link

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
Copy link
Contributor

recanman commented Dec 7, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants