1

I'm still learning typescript/javascript and now I'm trying to replace existing code where BigNumber is used with bigint/BigInt.

Originally I thought these types are the same (because typeof(BigInt) === typeof(bigint)) but when accidentaly mixed bigint and BigInt I received errors from typescript compiler.

I see that ethers.js is using bigint so I can't use BigInt. So is bigint the correct way how to use native big nubmers in JS?

Thanks

Checked documentations, checked SO, asked chat AI ;-)

0 Answers0