-
Notifications
You must be signed in to change notification settings - Fork 76
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
Library returns NULL when it receives a blank response and error. #92
Comments
I've changed the title, definitely this feature should be implement in the next version. |
Sorry I think that maybe my question was not clear. I have done some digging and it seems like this is a bug. If I add a vardump at
It seems that it runs this code twice because this is the result of that
SO it seems to me that it runs correctly on the first pass, then gets confused, runs again and returns null? Sorry I am unfamiliar with the code so maybe I am using it wrong but this seems like a bug. The code I have created to get this bug is simple and displayed below:
|
After more digging, it seems that it is because the |
Could you please retest? |
I am using $walletRPC->transfer() among other functions, and whenever I run this command, the function returns null instead of error messages or resulting information from the transfer() function.
For example, I ran the following command:
$result = $walletRPC->transfer(0.00001, '43CHhRBuqiPFevrGEnQeSR76CMhKnV21AfHDsp47oY3CH7dBLFE7egBT2vT3niBXWC8k4WzJ8zFkLdTYVKKuBpwhVXiq7ZS', 'd9e3f557812a49ddaaa096555b22e658d88052c09ec64bde9bcc2be905fb04a2');
$result
was NULL, despite my monero-rpc log showing these errors.ERROR wallet.wallet2 src/wallet/wallet2.cpp:8369 needed_moner + min_fee > unlocked_balance_subtotal. THROW EXCEPTION: error:not_enough_unlocked_money.
What is the correct way to see my error messages through this API?
Thanks!
The text was updated successfully, but these errors were encountered: