Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Odd Name serialization #720

Closed
jafri opened this issue May 15, 2020 · 5 comments
Closed

Odd Name serialization #720

jafri opened this issue May 15, 2020 · 5 comments
Assignees

Comments

@jafri
Copy link

jafri commented May 15, 2020

Eosjs name serialization is a little odd with capitalized names

For example it will serialize Sncqu.wam into ncqu.wam, could we perhaps have it make names lowercase automatically?

@jlamarr22 jlamarr22 self-assigned this May 15, 2020
@jlamarr22
Copy link
Contributor

Thanks for logging this issue. I agree that there's a lot of hidden logic in serialization that is supposed to help people use it. If data is in the correct format that the chain expects, then it seems like everything serializes properly, but I can see how this would be confusing when input != output.

I'm thinking throwing an error for invalid characters during serialization would make more sense than modifying the input, because that helps the dev understand the underlying logic and format properly on subsequent requests. What do you think?

@jafri
Copy link
Author

jafri commented May 15, 2020

@jlamarr22 throwing an error to the line of "name must be lowercase" would be fine

@jafri
Copy link
Author

jafri commented May 27, 2020

@jlamarr22 can we have a fix come in soon, theres people losing funds on different wallets across EOSIO daily

@jlamarr22
Copy link
Contributor

jlamarr22 commented May 27, 2020

@jafri Apologies for the delay. We're working on a fix for this, so should have it to you in within the next couple days.

@bradlhart
Copy link
Contributor

@jafri eosjs@21.0.0-8deba86.0 contains the changes from #726 and should resolve the issue. It will also likely be included in a patch version after eosjs@v21 is stable.

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

No branches or pull requests

3 participants