Skip to content

Commit

Permalink
fix: paymaster check in validateFeeLimit (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
ly0va authored Jan 7, 2025
1 parent 543e8c9 commit 92bb37b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libraries/SessionLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ library SessionLib {
// most of the computation needed to validate the session.

// TODO: update fee allowance with the gasleft/refund at the end of execution
if (transaction.paymaster != 0) {
// If a paymaster is paying the fee, we don't need to check the fee limit
// If a paymaster is paying the fee, we don't need to check the fee limit
if (transaction.paymaster == 0) {
uint256 fee = transaction.maxFeePerGas * transaction.gasLimit;
spec.feeLimit.checkAndUpdate(state.fee, fee, periodId);
}
Expand Down

0 comments on commit 92bb37b

Please sign in to comment.