Skip to content

Commit

Permalink
Merge 959b7f5 into f7685f0
Browse files Browse the repository at this point in the history
  • Loading branch information
YouStillAlive authored May 16, 2024
2 parents f7685f0 + 959b7f5 commit 335993f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/ERC20Helper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ contract ERC20Helper is FirewallConsumer {

function transferToken(IERC20 token, address to, uint256 amount) internal firewallProtectedSig(0x3844b707) {
uint256 oldBalance = token.balanceOf(address(this));
emit TransferOut(amount, msg.sender, token);
emit TransferOut(amount, to, token);
token.safeTransfer(to, amount);
if (token.balanceOf(address(this)) != (oldBalance - amount)) revert SentIncorrectAmount();
}
Expand Down

0 comments on commit 335993f

Please sign in to comment.