Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postop refactor #12

Merged
merged 8 commits into from
Mar 14, 2024
Merged

Postop refactor #12

merged 8 commits into from
Mar 14, 2024

Conversation

wilsoncusack
Copy link
Contributor

Comment on lines 147 to 149
// `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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// `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.
// `PostOpMode.postOpReverted` should be impossible.
// Only possible cause would be if this contract does not own enough ETH to transfer
// but this is checked at the validation step.

@@ -212,7 +227,7 @@ contract MagicSpend is Ownable, IPaymaster {
///
/// @dev Reverts if not called by the owner of the contract.
///
/// @param amount The amount to stake in the Entrypoint.
/// @param amount The amount to stake in the Entrypoint.
/// @param unstakeDelaySeconds XXX
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// @param unstakeDelaySeconds XXX
/// @param unstakeDelaySeconds The new lock duration before the deposit can be withdrawn.

@@ -40,28 +40,6 @@ contract ValidatePaymasterUserOpTest is PaymasterMagicSpendBaseTest, ValidateTes
assertEq(uint160(validationData), 1);
}

function test_setsExcess(uint256 amount_, uint256 maxCost_, uint256 actualCost) public {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are no longer needed as there should be no way for excess to be non 0 at end of userOp

@wilsoncusack wilsoncusack merged commit 9e040b8 into main Mar 14, 2024
1 of 3 checks passed
@wilsoncusack wilsoncusack deleted the postop-refactor branch March 14, 2024 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants