Skip to content

Commit

Permalink
Primitive test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
toninorair committed Jul 3, 2024
1 parent 7c6feb4 commit 1d4b119
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/utils/Mocks.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ contract MockM {
uint128 public currentIndex;

mapping(address account => uint256 balance) public balanceOf;
mapping(address account => bool isEarning) public isEarning;

function transfer(address, uint256) external returns (bool success_) {
return true;
Expand All @@ -28,6 +29,14 @@ contract MockM {
function setTtgRegistrar(address ttgRegistrar_) external {
ttgRegistrar = ttgRegistrar_;
}

function startEarning() external {
isEarning[msg.sender] = true;
}

function stopEarning() external {
isEarning[msg.sender] = false;
}
}

contract MockRegistrar {
Expand Down

0 comments on commit 1d4b119

Please sign in to comment.