Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
montyly committed Apr 10, 2024
1 parent 61f2a11 commit a1b1f08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions program-analysis/slither/examples/coin.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ contract Coin {
mapping(address => uint256) balances;

// _mint must not be overriden
function _mint(address dst, uint256 val) internal {
function _mint(address dst, uint256 val) virtual internal {
require(msg.sender == owner);
balances[dst] += val;
}
Expand All @@ -20,7 +20,7 @@ contract Coin {
contract MyCoin is Coin {
event Mint(address, uint256);

function _mint(address dst, uint256 val) internal {
function _mint(address dst, uint256 val) override internal {
balances[dst] += val;
emit Mint(dst, val);
}
Expand Down

0 comments on commit a1b1f08

Please sign in to comment.