You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to add a fixed burn amount of tokens on all transfers using Openzeppelin v5 and the _update function.
When i modify the _update (override) function specificaly "emit Transfer(from, to, value - burnamount);" (the only change in the entire code of the smart contract) by adding a fixed burning of tokens amount i get this problem, i am not sure if it is a bug.
Hello,
I am trying to add a fixed burn amount of tokens on all transfers using Openzeppelin v5 and the _update function.
When i modify the _update (override) function specificaly "emit Transfer(from, to, value - burnamount);" (the only change in the entire code of the smart contract) by adding a fixed burning of tokens amount i get this problem, i am not sure if it is a bug.
Initial total supply "_mint(msg.sender, 1000000 * 10 ** decimals ());" 1000000.
The correct amount of tokens are burned from the total supply, before i receive the tokens "999,999.5".
I do not receive the tokens even it is reported a success in the transaction hash.
"
Max Total Supply
Filtered by totalsupply(), method returned a zero value.
Holders
0
Total Transfers
1
"
The holders tab reports no entries.
Deployed using hardhat.
I tried adding "function totalSupply()", import ERC20Burnable.sol, pragma solidity ^0.8.20 or ^0.8.24 and other networks none of those changes work.
How to correct this problem/bug, thank you.
The text was updated successfully, but these errors were encountered: