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

getClaimableBalanceId returns incorrect id #529

Closed
eugene3141 opened this issue May 17, 2022 · 0 comments · Fixed by #530
Closed

getClaimableBalanceId returns incorrect id #529

eugene3141 opened this issue May 17, 2022 · 0 comments · Fixed by #530
Labels

Comments

@eugene3141
Copy link

eugene3141 commented May 17, 2022

Describe the bug
getClaimableBalanceId returns incorrect id

What version are you on?
Stellar Base v8.0.0

To Reproduce

let sdk = require("stellar-base");
/*
sourceAccount = GALAXYVOIDAOPZTDLHILAJQKCVVFMD4IKLXLSZV5YHO7VY74IWZILUTO
seqNum = 114272277834498050
opNum = 0
*/
let xdr = 'AAAAAgAAAAAWC+KuQMDn5mNZ0LAmChVqVg+IUu65Zr3B3frj/EWyhQAAA+gBlfoIAAAAAgAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAADgAAAAAAAFrzEHpAAAAAAAEAAAAAAAAAABYL4q5AwOfmY1nQsCYKFWpWD4hS7rlmvcHd+uP8RbKFAAAAAAAAAAAAAAAA';
let tx = new sdk.TransactionBuilder.fromXDR(xdr, sdk.Networks.PUBLIC);
let cbId = tx.getClaimableBalanceId(0);
console.log(cbId);

The function returns 000000007f156aacadf4101a920a45e312707bbf06323f79536f6b0f18afd874617f181a.

Expected behavior
With the same arguments, Stellar Python SDK returns 000000000321fe4ccc0027b330c23f3a9a4720bea524ee9e319d37deaa49c071da8a2659, which is the correct id.

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