Skip to content

Commit

Permalink
Merge pull request #13 from sbloomberg1/main
Browse files Browse the repository at this point in the history
Fixing some typos in MagicSpend.sol
  • Loading branch information
wilsoncusack authored Mar 20, 2024
2 parents 9e040b8 + 58e8834 commit 0f214c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Binary file added .DS_Store
Binary file not shown.
8 changes: 4 additions & 4 deletions src/MagicSpend.sol
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ contract MagicSpend is Ownable, IPaymaster {
/// - signed by the current owner of this contract
error InvalidSignature();

/// @notice Thrown when trying to use a withdraw request after its expiry has been reched.
/// @notice Thrown when trying to use a withdraw request after its expiry has been reached.
error Expired();

/// @notice Thrown when trying to replay a withdraw request with the same nonce.
///
/// @param nonce The already used nonce.
error InvalidNonce(uint256 nonce);

/// @notice Thrown during validation in the context of ERC4337, when the withraw reques amount is insufficient
/// @notice Thrown during validation in the context of ERC4337, when the withdraw request amount is insufficient
/// to sponsor the transaction gas.
///
/// @param requested The withdraw request amount.
Expand All @@ -84,7 +84,7 @@ contract MagicSpend is Ownable, IPaymaster {

/// @notice Thrown in when `postOp()` is called a second time with `PostOpMode.postOpReverted`.
///
/// @dev This should only really occur if for unknown reasons the transfer of the withdrwable
/// @dev This should only really occur if for unknown reasons the transfer of the withdrawable
/// funds to the user account failed (i.e. this contract's ETH balance is insufficient or
/// the user account refused the funds or ran out of gas on receive).
error UnexpectedPostOpRevertedMode();
Expand Down Expand Up @@ -152,7 +152,7 @@ contract MagicSpend is Ownable, IPaymaster {
(uint256 maxGasCost, address account) = abi.decode(context, (uint256, address));

// Compute the total remaining funds available for the user accout.
// NOTE: Take into account the user operation gas that was not consummed.
// NOTE: Take into account the user operation gas that was not consumed.
uint256 withdrawable = _withdrawableETH[account] + (maxGasCost - actualGasCost);

// Send the all remaining funds to the user accout.
Expand Down

0 comments on commit 0f214c9

Please sign in to comment.