-
Notifications
You must be signed in to change notification settings - Fork 32
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
VM: Should allow value to be set on CREATE/Call in API #192
Comments
I think the issue is the semux-core/src/main/java/org/semux/api/v2/SemuxApiImpl.java Lines 768 to 774 in 0682972
|
That could be part of the problem, but I am specifying local=false, and still get odd behavior. I can run through my tests again. My setup is as follows Create a contract that just does a transfer of amount/to to transfer from the contract to who you choose. Call the contract setting amount>0. It will send amount to target if 0 is specified as amount on call, but will not if value is specified. |
It could be that the internal transaction is not calling with internal=false |
Fixed in the |
After looking a bit closer at eth spec, it's perfectly valid to send amount on create/call
We should update API to allow this.
It looks like there's a bug on CALL where if you supply an amount, it doesn't seem to execute the call, just does the transfer. Will write unit test for this case.
The text was updated successfully, but these errors were encountered: