You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we call getAccountInfo (on devnet) for the public key (vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg) in the example for https://docs.solana.com/api/http#getaccountinfo, then the account info returned is:
Hi 👋 Thanks for reporting this. That's something I've also noticed since working on the new web3.js haha. I'm happy to accept a PR change for this change with a minor changeset.
rentEpoch
return by the RPC is au64
and should bebigint
inAccountHeader
in order to not lose precision.umi/packages/umi/src/Account.ts
Lines 16 to 21 in eda8af5
If we call
getAccountInfo
(on devnet) for the public key (vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg
) in the example for https://docs.solana.com/api/http#getaccountinfo, then the account info returned is:Here we can see the value for the
rentEpoch
is18446744073709551615
, however as anumber
we lose precision and get18446744073709552000
.The text was updated successfully, but these errors were encountered: