Skip to content

Commit

Permalink
Add mock functions ensuring that internal functions are declared as i…
Browse files Browse the repository at this point in the history
…nternal
  • Loading branch information
truls committed Jan 12, 2019
1 parent 590cd5b commit 63e40b8
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions contracts/mocks/ExternalERC20MintableMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,32 @@ contract ExternalERC20MintableMock is ExternalERC20Mintable, MinterRoleMock {
function changeMintingRecipient(address to) public {
_changeMintingRecipient(msg.sender, to);
}

/** Triggers compilation error if _changeMintingRecipient
* function is not declared internal
*/
function _changeMintingRecipient(
address sender,
address mintingRecip
)
internal
requireMinter(sender)
{
super._mintExplicitSender(sender, mintingRecip);
}

/** Triggers compilation error if _mintExplicitSender
* function is not declared internal
*/
function _mintExplicitSender(
address sender,
address to,
address value
)
internal
requireMinter(sender)
{
super._mintExplicitSender(sender, to, value);
}

}

0 comments on commit 63e40b8

Please sign in to comment.