-
Notifications
You must be signed in to change notification settings - Fork 3.8k
abi_json_to_bin for Action newaccount Returns Incorrect Value #5629
Comments
I'm actually having the same issue. I'm also writing a python library for the RPC API. Creating an account is the first action that I tried to write. Command that I ran: Below are the http requests sent by cleos that I've captured in wireshark when the above command was ran. My code is nearly identical to @deckb's in this instance. I've looked over the Below is the information returned from the RPC API when I run @deckb's or my code.
Below is the information I scrapped from wireshark when running the above
When executing @deckb's create action I receive the following exception from the RPC API.
I also checked the bin data returned by
This is the bin data returned by the above command: As you can see from the below output that characters 1-16 and 17-32 are the
|
I figured it out. If you look at the abi for the eosio.system contract it's expecting an
Now i'm getting the correct output from |
After correcting my python to use the Authority it worked but I agree with @ARoomWithABue that it should have failed when not given the correct data. |
The correct command parameter should be something like:
This is the output:
|
I agree. This bug and a few others in
|
The issue appears to only happen with the
newaccount
action. It can be reproduced usingThe output from above
The expected output via the cleos command
It looks like creator and name are correctly processed but the keys are not returned.
The text was updated successfully, but these errors were encountered: