Skip to content

Commit

Permalink
fix: virtualized transfer methods (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
sendra authored Oct 18, 2023
1 parent 56720ad commit 7a7548c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/contracts/utils/Rescuable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ abstract contract Rescuable is IRescuable {
address erc20Token,
address to,
uint256 amount
) external onlyRescueGuardian {
) external virtual onlyRescueGuardian {
IERC20(erc20Token).safeTransfer(to, amount);

emit ERC20Rescued(msg.sender, erc20Token, to, amount);
}

/// @inheritdoc IRescuable
function emergencyEtherTransfer(address to, uint256 amount) external onlyRescueGuardian {
function emergencyEtherTransfer(address to, uint256 amount) external virtual onlyRescueGuardian {
(bool success, ) = to.call{value: amount}(new bytes(0));
require(success, 'ETH_TRANSFER_FAIL');

Expand Down

0 comments on commit 7a7548c

Please sign in to comment.