Skip to content

Commit

Permalink
πŸ‘·πŸ» πŸ—‘οΈ Remove increment from MarginPaymaster
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyrharper committed Jul 8, 2024
1 parent 1431750 commit b76f381
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
6 changes: 0 additions & 6 deletions src/MarginPaymaster.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import {console} from "forge-std/console.sol";
/// @notice Responsible for paying tx gas fees using trader margin
/// @author tommyrharper ([email protected])
contract MarginPaymaster is IPaymaster {
uint256 public number;

function validatePaymasterUserOp(
UserOperation calldata,
bytes32,
Expand All @@ -27,8 +25,4 @@ contract MarginPaymaster is IPaymaster {
// assert(msg.sender == entryPoint)
console.log("postOp");
}

function increment() public {
number++;
}
}
5 changes: 1 addition & 4 deletions test/MarginPaymaster.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,5 @@ contract MarginPaymasterTest is Bootstrap {
initializeLocal();
}

function testIncrement() public {
marginPaymaster.increment();
assertEq(marginPaymaster.number(), 1);
}
function testSetupWorks() public {}
}

0 comments on commit b76f381

Please sign in to comment.