Skip to content

use bigint instead of BigInt #3046

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

Closed
ianhe8x opened this issue Jan 13, 2021 · 2 comments
Closed

use bigint instead of BigInt #3046

ianhe8x opened this issue Jan 13, 2021 · 2 comments

Comments

@ianhe8x
Copy link
Contributor

ianhe8x commented Jan 13, 2021

BigInt is constructor of primitive type bigint, like Number() to number.

Adding two BigInt variables will lead to a compiler error: TS2365: Operator '+' cannot be applied to types 'BigInt' and 'BigInt'.

Therefore, toBigInt() should return bigint

@ianhe8x
Copy link
Contributor Author

ianhe8x commented Jan 13, 2021

duplicated

@ianhe8x ianhe8x closed this as completed Jan 13, 2021
@polkadot-js-bot
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.

@polkadot-js polkadot-js locked as resolved and limited conversation to collaborators Jun 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants