Skip to content
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

Amino JSON string escaping (v2) #1388

Merged
merged 3 commits into from
Mar 13, 2023
Merged

Amino JSON string escaping (v2) #1388

merged 3 commits into from
Mar 13, 2023

Conversation

webmaster128
Copy link
Member

@webmaster128 webmaster128 commented Mar 9, 2023

Closes #1367

Builds on top of #1373

@loin3
Copy link
Contributor

loin3 commented Mar 9, 2023

oh wow. this works perfectly and the memo seems fine when I queried the tx.
스크린샷 2023-03-10 오전 4 26 37

but I can't understand why this works and keplr fails while escape logic is same. I sent tx with &, <, > characters through keplr and the memo was escaped. https://www.mintscan.io/cosmos/txs/1858CBE6DD792D915E0CE56174323D983FC1DBD3A429B755FBCEDF74EDFA7709

@webmaster128
Copy link
Member Author

Seems like Keplr does not do the escaping at the correct level

So the content of the memo is changed before the encoding starts. So one effect this could have is the memo of the sign doc is not the memo of the protobuf transaction.

Anyways, I'm not familiar with the Keplr codebase.

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

Successfully merging this pull request may close these issues.

Amino encode not support some special char(<, >, $).
2 participants