Skip to content

Commit

Permalink
make boost immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcos20 committed Jun 28, 2024
1 parent 404a080 commit 3f847d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/rewards/Booster.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import "@openzeppelin/contracts/access/Ownable.sol";
contract Booster is Ownable, ERC721Enumerable,ERC721URIStorage {
using Counters for Counters.Counter;
Counters.Counter private _tokenIds;
uint256 public boost;
uint256 public immutable boost;
constructor(string memory _name, string memory _symbol,uint256 _boost)

Check notice

Code scanning / Slither

Local variable shadowing Low

Check notice

Code scanning / Slither

Local variable shadowing Low

ERC721(_name, _symbol) {
boost=_boost;
Expand Down Expand Up @@ -78,7 +78,7 @@ contract Booster is Ownable, ERC721Enumerable,ERC721URIStorage {

// The following functions are overrides required by Solidity.
function _burn(uint256 tokenId) internal override(ERC721URIStorage,ERC721) {
revert("Burning not allowed");
revert("Burning not allowed");
}

Check warning

Code scanning / Slither

Dead-code Warning

Booster._burn(uint256) is never used and should be removed


Expand Down

0 comments on commit 3f847d0

Please sign in to comment.