From 9cf13cad63911e91c7dcebc7484d377e47aaa34d Mon Sep 17 00:00:00 2001 From: adam Date: Mon, 22 Jan 2024 15:51:45 -0500 Subject: [PATCH] inline boolean --- src/plugins/session/permissions/SessionKeyPermissionsLoupe.sol | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/session/permissions/SessionKeyPermissionsLoupe.sol b/src/plugins/session/permissions/SessionKeyPermissionsLoupe.sol index 436c43e3..1f2d4590 100644 --- a/src/plugins/session/permissions/SessionKeyPermissionsLoupe.sol +++ b/src/plugins/session/permissions/SessionKeyPermissionsLoupe.sol @@ -103,10 +103,9 @@ abstract contract SessionKeyPermissionsLoupe is SessionKeyPermissionsBase { { (SessionKeyData storage sessionKeyData,) = _loadSessionKey(account, sessionKey); - bool hasLimit = sessionKeyData.hasGasLimit; shouldReset = sessionKeyData.gasLimitResetThisBundle; - if (hasLimit) { + if (sessionKeyData.hasGasLimit) { info.hasLimit = true; info.limit = sessionKeyData.gasLimit.limitAmount; info.limitUsed = sessionKeyData.gasLimit.limitUsed;