You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This yields (imo) surprising behavior for someone using abieos to serialize actions from JSON. For example, someone using abieos' JSON->bin serialization may pass abieos
{"from":"bob bob bob","to":"carol","quantity":"2.0000 EOS","memo":"sup"}
what would you expect to happen here? nodeos will disallow serialization in this case because bob bob bob isn't a valid name. but abieos will serialize it, with from being the murmur hash output of bob bob bob. I consider nodeos the canonical abi behavior and abieos should match it.
The text was updated successfully, but these errors were encountered:
When reading a name from JSON,
abieos/include/eosio/name.hpp
Lines 154 to 158 in 232600c
abieos first checks if it's a valid name and uses it, but if it's not a valid name it makes it a valid name by murmur hashing it,
abieos/include/eosio/name.hpp
Lines 145 to 149 in 232600c
This yields (imo) surprising behavior for someone using abieos to serialize actions from JSON. For example, someone using abieos' JSON->bin serialization may pass abieos
what would you expect to happen here? nodeos will disallow serialization in this case because
bob bob bob
isn't a valid name. but abieos will serialize it, withfrom
being the murmur hash output ofbob bob bob
. I consider nodeos the canonical abi behavior and abieos should match it.The text was updated successfully, but these errors were encountered: