Skip to content

Commit

Permalink
Use a consistent code style
Browse files Browse the repository at this point in the history
  • Loading branch information
zZoMROT committed Jan 14, 2025
1 parent 26969f6 commit 9b02351
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contracts/libraries/SafeERC20.sol
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ library SafeERC20 {
mstore(add(data, 0x04), from)
mstore(add(data, 0x24), to)
mstore(add(data, 0x44), amount)
success := call(gas(), token, 0, data, 100, 0x0, 0x20)
success := call(gas(), token, 0, data, 0x64, 0x0, 0x20)
if success {
switch returndatasize()
case 0 {
Expand Down Expand Up @@ -167,14 +167,14 @@ library SafeERC20 {
* the caller to make sure that the higher 96 bits of the `to` parameter are clean.
* @param token The IERC20 token contract from which the tokens will be transferred.
* @param to The address to which the tokens will be transferred.
* @param value The amount of tokens to transfer.
* @param amount The amount of tokens to transfer.
*/
function safeTransfer(
IERC20 token,
address to,
uint256 value
uint256 amount
) internal {
if (!_makeCall(token, token.transfer.selector, to, value)) {
if (!_makeCall(token, token.transfer.selector, to, amount)) {
revert SafeTransferFailed();
}
}
Expand Down

0 comments on commit 9b02351

Please sign in to comment.