From ff0a6be29c4d9408cc6046b17e5b13be2c1e3aaa Mon Sep 17 00:00:00 2001 From: atarpara Date: Wed, 13 May 2026 17:42:07 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20Fix=20permit2=20approve=20callda?= =?UTF-8?q?ta=20size?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/SafeTransferLib.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/SafeTransferLib.sol b/src/utils/SafeTransferLib.sol index 1e08d0ec4..8e45db164 100644 --- a/src/utils/SafeTransferLib.sol +++ b/src/utils/SafeTransferLib.sol @@ -654,7 +654,7 @@ library SafeTransferLib { mstore(add(m, 0x40), and(addressMask, spender)) mstore(add(m, 0x60), and(addressMask, amount)) mstore(add(m, 0x80), and(0xffffffffffff, expiration)) - if iszero(call(gas(), PERMIT2, 0, add(m, 0x1c), 0xa0, codesize(), 0x00)) { + if iszero(call(gas(), PERMIT2, 0, add(m, 0x1c), 0x84, codesize(), 0x00)) { mstore(0x00, 0x324f14ae) // `Permit2ApproveFailed()`. revert(0x1c, 0x04) }