-
Notifications
You must be signed in to change notification settings - Fork 13
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
Postop refactor #12
Conversation
src/MagicSpend.sol
Outdated
// `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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// `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. |
src/MagicSpend.sol
Outdated
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// @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 { |
There was a problem hiding this comment.
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
Opening back up #10 re eth-infinitism/account-abstraction#460