We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61f2a11 commit a1b1f08Copy full SHA for a1b1f08
program-analysis/slither/examples/coin.sol
@@ -7,7 +7,7 @@ contract Coin {
7
mapping(address => uint256) balances;
8
9
// _mint must not be overriden
10
- function _mint(address dst, uint256 val) internal {
+ function _mint(address dst, uint256 val) virtual internal {
11
require(msg.sender == owner);
12
balances[dst] += val;
13
}
@@ -20,7 +20,7 @@ contract Coin {
20
contract MyCoin is Coin {
21
event Mint(address, uint256);
22
23
+ function _mint(address dst, uint256 val) override internal {
24
25
emit Mint(dst, val);
26
0 commit comments