Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoenicke committed Aug 15, 2023
1 parent 6161ffd commit 41d57c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libraries/SafeTransferLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import {IERC20} from "../interfaces/IERC20.sol";
/// not returning a boolean for `transfer` and `transferFrom` functions.
library SafeTransferLib {
function tmpSafeTransfer(address token, address to, uint256 value) internal {
(bool success, bytes memory returndata) = address(token).call(abi.encodeCall(IERC20(token).transfer, (to, value)));
(bool success, bytes memory returndata) =
address(token).call(abi.encodeCall(IERC20(token).transfer, (to, value)));
require(
success && address(token).code.length > 0 && (returndata.length == 0 || abi.decode(returndata, (bool))),
ErrorsLib.TRANSFER_FAILED
Expand Down

0 comments on commit 41d57c5

Please sign in to comment.