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

TxApi.decode() has bug. #324

Closed
comsy-gcp opened this issue Aug 2, 2022 · 1 comment · Fixed by #325
Closed

TxApi.decode() has bug. #324

comsy-gcp opened this issue Aug 2, 2022 · 1 comment · Fixed by #325

Comments

@comsy-gcp
Copy link

https://github.com/terra-money/terra.js/blob/main/src/client/lcd/api/TxAPI.ts
line 386
decode() function has bug.
Tx.fromBuffer needs "isClassic" for classic terra.

return Tx.fromBuffer(Buffer.from(encodedTx, 'base64'));
fix to
return Tx.fromBuffer(Buffer.from(encodedTx, 'base64'), this.lcd.config.isClassic);

please confirm
thank you.

@Vritra4
Copy link
Contributor

Vritra4 commented Aug 3, 2022

thanks for the report! it'll be fixed.

@Vritra4 Vritra4 mentioned this issue Aug 3, 2022
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 a pull request may close this issue.

2 participants