solana-web3.js icon indicating copy to clipboard operation
solana-web3.js copied to clipboard

Integers beyond `parsed: info:` are always `bigint`

Open buffalojoec opened this issue 1 year ago • 4 comments

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.

buffalojoec avatar Nov 11 '23 11:11 buffalojoec