Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
amiecorso committed Oct 16, 2024
1 parent 626b16a commit 5aff53b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/SpendPermissionManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ contract SpendPermissionManager is EIP712 {

/// @notice Approve a spend permission via a signature from the account.
///
/// @dev Implements EIP-6492 (https://eips.ethereum.org/EIPS/eip-6492)
/// @dev Compatible with EIP-6492 signatures (https://eips.ethereum.org/EIPS/eip-6492)
///
/// @param spendPermission Details of the spend permission.
/// @param signature Signed approval from the user.
Expand Down
1 change: 0 additions & 1 deletion test/base/Base.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ contract Base is Test {
address constant ENTRY_POINT_V06 = 0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789;
address constant CDP_PAYMASTER = 0xC484bCD10aB8AD132843872DEb1a0AdC1473189c;
bytes4 constant EIP1271_MAGIC_VALUE = 0x1626ba7e;
bytes32 constant EIP6492_MAGIC_VALUE = 0x6492649264926492649264926492649264926492649264926492649264926492;
uint256 ownerPk = uint256(keccak256("owner"));
address owner = vm.addr(ownerPk);
uint256 permissionSignerPk = uint256(keccak256("permissionSigner"));
Expand Down
1 change: 1 addition & 0 deletions test/base/SpendPermissionManagerBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {CoinbaseSmartWalletFactory} from "smart-wallet/CoinbaseSmartWalletFactor

contract SpendPermissionManagerBase is Base {
address constant NATIVE_TOKEN = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;
bytes32 constant EIP6492_MAGIC_VALUE = 0x6492649264926492649264926492649264926492649264926492649264926492;
bytes32 constant CBSW_MESSAGE_TYPEHASH = keccak256("CoinbaseSmartWalletMessage(bytes32 hash)");
MockSpendPermissionManager mockSpendPermissionManager;
CoinbaseSmartWalletFactory mockCoinbaseSmartWalletFactory;
Expand Down
2 changes: 1 addition & 1 deletion test/src/SpendPermissions/permitAndSpend.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ contract PermitAndSpendTest is SpendPermissionManagerBase {

function test_permitAndSpend_revert_invalidSender(
address sender,
address permissionSigner,
address spender,
address recipient,
uint48 start,
uint48 end,
Expand Down

0 comments on commit 5aff53b

Please sign in to comment.