The token on that extends the ERC20 standard, and I ran into some issues here. Since there are 18 decimal places for the token I would try to transfer something like 500 * 10 ** 18 and would get an overflow error.
To resolve this I just had to put it into a JavaScript BigInt like so: const wholeTokens = BigInt(amount * 10 ** 18)
Hope this helps someone!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I used NextJS as the React framework, added some styling and refactored the code a bit.
Check it out: react-eth.netlify.app/
All of the code for this is on GitHub also.
The token on that extends the ERC20 standard, and I ran into some issues here. Since there are 18 decimal places for the token I would try to transfer something like
500 * 10 ** 18
and would get an overflow error.To resolve this I just had to put it into a JavaScript BigInt like so:
const wholeTokens = BigInt(amount * 10 ** 18)
Hope this helps someone!