8000 rpc-api: pre/postTokenBalances.uiAmount sometimes incorrectly parsed as bigint · Issue #413 · anza-xyz/kit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

rpc-api: pre/postTokenBalances.uiAmount sometimes incorrectly parsed as bigint #413

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

Closed
zimrain opened this issue Apr 28, 2025 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@zimrain
Copy link
zimrain commented Apr 28, 2025

Steps to reproduce

Using @solana/kit RPC client to getTransaction with encoding: json, try 2q96Ep7DBVXgQxsLTPJonaXwSvcRmstCRzYeAQqaPNdpBU4uaPE3pjFXSewwhwMQFqsnQnqt5GV94sc8BCZ54nnH

The returned object has uiAmount: 6660569n. It should be uiAmount: 6660569, as the type is number | null. It is correctly parsed as number for the other pre/postTokenBalances.

@zimrain zimrain added the bug Something isn't working label Apr 28, 2025
@zimrain
Copy link
Author
zimrain commented Apr 28, 2025

Possibly duplicate of #34

@steveluscher
Copy link
Collaborator

Sounds like it! I'll add your transaction signature to the test plan there.

Copy link
Contributor

Because there has been no activity on this issue for 7 days since it was closed, it has been automatically locked. Please open a new issue if it requires a follow up.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
0