Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsoncusack committed Mar 14, 2024
1 parent 5f7a810 commit 80bc421
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MagicSpend.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import {UserOperation} from "account-abstraction/interfaces/UserOperation.sol";
import {IPaymaster} from "account-abstraction/interfaces/IPaymaster.sol";
import {IEntryPoint} from "account-abstraction/interfaces/IEntryPoint.sol";

import "forge-std/console.sol";

/// @title Magic Spend
///
/// @author Coinbase (https://github.com/coinbase/magic-spend)
Expand Down Expand Up @@ -147,6 +145,8 @@ contract MagicSpend is Ownable, IPaymaster {
onlyEntryPoint
{
// `PostOpMode.postOpReverted` should be impossible.
// Only possible cause would be if this contract does not enough ETH to transfer
// but this is checked at the validation step.
assert(mode != PostOpMode.postOpReverted);

(uint256 maxGasCost, address account) = abi.decode(context, (uint256, address));
Expand Down

0 comments on commit 80bc421

Please sign in to comment.