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

TokenTransfer.getTransferVaa mixes up results when doing several queries in a loop. #655

Open
mmaurello opened this issue Aug 5, 2024 · 0 comments

Comments

@mmaurello
Copy link

mmaurello commented Aug 5, 2024

Hello Wormhole team.

I'm having an issue with the sdk. I'm doing a call to the tx history with wh.getTransactionsForAddress and then iterating inside the array obtained, to fetch the VAA for each of the transactions. What I'm getting are mixed up tx ids with the resulting VAA.

I created a small sample in CodeSandbox where I replicated minimally the code in my app.
To see it click here to go to CodeSandbox and open the incorporated console where I log the results.

As you can see I obtain mixed up results and wrong VAAs that can be checked in WormholeScan
For example here I can check that for this TxId the VAA sequence is 2034 https://wormholescan.io/#/tx/0xf89ea12b4ecdba9e5ec522a02f876d84ecb5bf8625963cbbb8c4bf36422e4c11?network=TESTNET&view=advanced
And I'm getting different values in my example
for tx 0xf89ea12b4ecdba9e5ec522a02f876d84ecb5bf8625963cbbb8c4bf36422e4c11 the VAA sequence is 1214 for tx 0xf89ea12b4ecdba9e5ec522a02f876d84ecb5bf8625963cbbb8c4bf36422e4c11 the VAA sequence is 2034 for tx 0xf89ea12b4ecdba9e5ec522a02f876d84ecb5bf8625963cbbb8c4bf36422e4c11 the VAA sequence is 1212 for tx 0xf89ea12b4ecdba9e5ec522a02f876d84ecb5bf8625963cbbb8c4bf36422e4c11 the VAA sequence is 2034 for tx 0xf89ea12b4ecdba9e5ec522a02f876d84ecb5bf8625963cbbb8c4bf36422e4c11 the VAA sequence is 2040 for tx 0xf89ea12b4ecdba9e5ec522a02f876d84ecb5bf8625963cbbb8c4bf36422e4c11 the VAA sequence is 2034

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

No branches or pull requests

1 participant