Skip to content

Commit

Permalink
inline boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
adamegyed committed Jan 22, 2024
1 parent 6b7674f commit 9cf13ca
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9cf13ca

Please sign in to comment.