Skip to content

Commit

Permalink
Rename file, update TestPaymaster
Browse files Browse the repository at this point in the history
  • Loading branch information
akshay-ap committed Apr 4, 2024
1 parent cbe661b commit 827b321
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modules/passkey/contracts/test/TestPaymaster.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ import {IEntryPoint} from "@account-abstraction/contracts/interfaces/IEntryPoint
* TODO: This is a dummy contract that has no validation logic. Either implement validation logic or remove this contract and use MockContract.
*/
contract TestPaymaster {
enum PostOpMode {
opSucceeded, // user op succeeded
opReverted, // user op reverted. still has to pay for gas.
postOpReverted // Regardless of the UserOp call status, the postOp reverted, and caused both executions to revert.
}

function validatePaymasterUserOp(
PackedUserOperation calldata userOp,
bytes32 userOpHash,
Expand All @@ -20,12 +26,6 @@ contract TestPaymaster {

function postOp(PostOpMode mode, bytes calldata context, uint256 actualGasCost, uint256 actualUserOpFeePerGas) external {}

enum PostOpMode {
opSucceeded, // user op succeeded
opReverted, // user op reverted. still has to pay for gas.
postOpReverted // Regardless of the UserOp call status, the postOp reverted, and caused both executions to revert.
}

function stakeEntryPoint(IEntryPoint entryPoint, uint32 unstakeDelaySecs) external payable {
entryPoint.addStake{value: msg.value}(unstakeDelaySecs);
}
Expand Down

0 comments on commit 827b321

Please sign in to comment.