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
This happens to any value over 100MM.
await wallet
.transferToContract(CONTRACT_ID, bn.parseUnits('1000000000', 9), ASSET_ID)
.then((tx) => tx.waitForResult());
Contract ABI
No response
Errors
`Error: Number can only safely store up to 53 bits`
The text was updated successfully, but these errors were encountered:
fuels-ts SDK Version
0.97.0
Toolchain Versions
mainnet
Node.js Version
22.8
Browser
No response
Operating System
No response
Describe the Problem
When trying to transfer amount to a contract using
transferToContract
method that operation returns an error due to usage oftoNumber()
.I believe this is the place:
fuels-ts/packages/account/src/utils/formatTransferToContractScriptData.ts
Lines 20 to 21 in 24edd5d
Code Snippet
Contract ABI
No response
Errors
`Error: Number can only safely store up to 53 bits`
The text was updated successfully, but these errors were encountered: