Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot convert a BigInt value to a number #211

Closed
sharifzadesina opened this issue May 30, 2024 · 1 comment
Closed

Cannot convert a BigInt value to a number #211

sharifzadesina opened this issue May 30, 2024 · 1 comment

Comments

@sharifzadesina
Copy link

Hello,

It seems there is a bug, we are using Math.max for BigInt numbers, which is not supported.

When using wallet.getNumBlocksToUnlock() I get the following error:

TypeError: Cannot convert a BigInt value to a number
    at Math.max (<anonymous>)
    at MoneroWalletFull.getNumBlocksToUnlock (/home/sina/Projects/pouch-js/node_modules/monero-ts/src/main/ts/wallet/MoneroWallet.ts:448:38)
    at <anonymous> (/home/sina/Projects/pouch-js/test.ts:21:19)
@woodser
Copy link
Owner

woodser commented Jul 4, 2024

Fixed in 0.9.8 release (txs with unlock time as timestamp are ignored).

@woodser woodser closed this as completed Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants