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

get_transaction for versionedTransaction 0, pre_token_balance is showing post_token_balance instead #432

Open
Tongoko opened this issue May 28, 2024 · 0 comments

Comments

@Tongoko
Copy link

Tongoko commented May 28, 2024

Hello,
get_transaction for VersionedTransaction 0 is returning wrong values for pre_token_balances.
It's showing the same values as for post_token_balances:

transaction_data = client.get_transaction(tx_sig=tx_sig, max_supported_transaction_version=0)

transaction_data.value.transaction.meta.pre_token_balances

if transaction_data.value.transaction.meta.pre_token_balances == transaction_data.value.transaction.meta.post_token_balances:
    logger.info('SAME VALUES!')
    
Logger:
SAME VALUES!

The bug seems to be occuring specifically for versioned transactions.

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