Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions src/mocks/ERC20Mock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,4 @@ contract ERC20Mock is IERC20 {

return true;
}

function transferto(address from, address to, uint256 amount) public virtual returns (bool) {
require(allowance[from][msg.sender] >= amount, "insufficient allowance");

allowance[from][msg.sender] -= amount;

require(balanceOf[from] >= amount, "insufficient balance");

balanceOf[from] -= amount;
balanceOf[to] += amount;

emit Transfer(from, to, amount);

return true;
}
}
Loading