@@ -41,7 +41,7 @@ library SafeTransferLib {
4141 revert (ptr, returndatasize ())
4242 }
4343 // Check for short returndata and missing code
44- if iszero (gt ( returndatasize (), 0x1f )) { revert (0x00 , 0x00 ) }
44+ if iszero (lt ( 0x1f , returndatasize ())) { revert (0x00 , 0x00 ) }
4545
4646 r := mload (0x00 )
4747 }
@@ -64,7 +64,7 @@ library SafeTransferLib {
6464 }
6565 // We check that the call either returned exactly 1 [true] (can't just be non-zero
6666 // data), or had no return data.
67- if iszero (or (and (eq (mload (0x00 ), 0x01 ), gt ( returndatasize (), 0x1f )), iszero (returndatasize ()))) {
67+ if iszero (or (and (eq (mload (0x00 ), 0x01 ), lt ( 0x1f , returndatasize ())), iszero (returndatasize ()))) {
6868 mstore (0x00 , 0x7939f424 ) // Selector for `TransferFromFailed()`
6969 revert (0x1c , 0x04 )
7070 }
@@ -92,7 +92,7 @@ library SafeTransferLib {
9292 }
9393 // We check that the call either returned exactly 1 [true] (can't just be non-zero
9494 // data), or had no return data.
95- if iszero (or (and (eq (mload (0x00 ), 0x01 ), gt ( returndatasize (), 0x1f )), iszero (returndatasize ()))) {
95+ if iszero (or (and (eq (mload (0x00 ), 0x01 ), lt ( 0x1f , returndatasize ())), iszero (returndatasize ()))) {
9696 mstore (0x00 , 0x90b8ec18 ) // Selector for `TransferFailed()`
9797 revert (0x1c , 0x04 )
9898 }
@@ -119,7 +119,7 @@ library SafeTransferLib {
119119 }
120120 // We check that the call either returned exactly 1 [true] (can't just be non-zero
121121 // data), or had no return data.
122- if iszero (or (and (eq (mload (0x00 ), 0x01 ), gt ( returndatasize (), 0x1f )), iszero (returndatasize ()))) {
122+ if iszero (or (and (eq (mload (0x00 ), 0x01 ), lt ( 0x1f , returndatasize ())), iszero (returndatasize ()))) {
123123 mstore (0x00 , 0x3e3f8f73 ) // Selector for `ApproveFailed()`
124124 revert (0x1c , 0x04 )
125125 }
0 commit comments