When you run command ‘truffle test’ and get error:“ReferenceError: accounts is not defined” To fix this, use below code line:contract(“Contract”, async (accounts) => {} and put test code between brackets e.g.:
Category Archives: js
Error: Number can only safely store up to 53 bits
I got this error: ‘Error: Number can only safely store up to 53 bits’ when using toNumber function: Quick fix using BigInt: