15,000 USDC
View results
Submission Details
Severity: gas

Empty blocks should be removed or emit something

Summary

[G-12] Empty blocks should be removed or emit something

The code should be refactored such that they no longer exist, or the block should do something useful, such as emitting an event or reverting.
If the contract is meant to be extended, the contract should be abstract and the function signatures be added without any default implementation.

file: /src/DecentralizedStableCoin.sol
44 constructor() ERC20("DecentralizedStableCoin", "DSC") {}

https://github.com/Cyfrin/2023-07-foundry-defi-stablecoin/blob/main/src/DecentralizedStableCoin.sol#L44

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.