Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max Total Supply / Holders #5221

Closed
Tracked by #5249
D33pst4t3 opened this issue Sep 22, 2024 · 1 comment
Closed
Tracked by #5249

Max Total Supply / Holders #5221

D33pst4t3 opened this issue Sep 22, 2024 · 1 comment

Comments

@D33pst4t3
Copy link

D33pst4t3 commented Sep 22, 2024

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.

ZeroHolders
ZeroSupply

@Skyge
Copy link
Contributor

Skyge commented Sep 24, 2024

Hi, @D33pst4t3 it seems like your issue is not relative to the OpenZeppelin contract, maybe you can close this issue and ask at the OpenZeppelin Forum

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants