I got this error: ‘Error: Number can only safely store up to 53 bits’ when using toNumber function:
totalSupply.toNumber()
Quick fix using BigInt:
BigInt(totalSupply)
IT, dev, C#, .NET, blockchain, smart contracts, advices, problems and nutshell solutions