solana-web3.js
solana-web3.js copied to clipboard
Integers beyond `parsed: info:` are always `bigint`
Description
Since we haven't added any of the JSON-parsed instruction types to the typespec in @solana/rpc-core
, any fields that are part of a JSON-parsed transaction instruction default to bigint
over number
, due to our response processor.
Steps to reproduce
Find a transaction that has a JSON-parsed instruction that uses an integer value that should not be cast to bigint
- such as decimals
.
You'll see that getTransaction
or getBlock
will convert this value into a bigint
.