Skip to content

Commit

Permalink
clear requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipp Makarov authored and Filipp Makarov committed Oct 16, 2024
1 parent 9a08f83 commit 3af5790
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/sponsorship/BiconomySponsorshipPaymaster.sol
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ contract BiconomySponsorshipPaymaster is
if (req.amount > currentBalance)
revert InsufficientFundsInGasTank();
paymasterIdBalances[paymasterId] = currentBalance - req.amount;
delete requests[paymasterId];
entryPoint.withdrawTo(payable(req.to), req.amount);
emit GasWithdrawn(paymasterId, req.to, req.amount);
}
Expand Down

0 comments on commit 3af5790

Please sign in to comment.