-
Notifications
You must be signed in to change notification settings - Fork 2.2k
spl-token, did rentEpoch go beyond js Number limits? #7635
Comments
Hm, I can actually see this number mentioned here: solana-program-library/account-compression/sdk/tests/fixtures/pre-batch-init-tree-account.json Line 11 in 2dff12b
|
huh lol it's actually |
Getting the same error when using |
Oh, this is a usual underflow value ( |
Fix it |
Hey guys, I'm going to close this issue since we know the fix belongs in |
Hi there! Trying to get an account's balance in USDC on the mainnet. Getting this error:
I feel like there's an issue in serializing the response, and hence the
getOrCreateAssociatedTokenAccount
operation fails?Here's the code I use:
This exact code has created the ATA (https://solscan.io/tx/2CLKuPkRFDtL7CAd5Qb3oEJ8ZXuHGQN5V8cdC1Ymb2xGUT6Fg2nGmWcXnNsWmqEqtmvjCE51guRswkEiArjoxQUw), and it seems to be getting the account response back, it's just that JS doesn't seem to be able to serialize
18446744073709551615
into aNumber
? Which would make sense, because it's a bit longer than the max int:9007199254740991
.Can you recommend any fixes?
The text was updated successfully, but these errors were encountered: