Skip to content

Commit

Permalink
🥢 Syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
z0r0z committed Jun 20, 2024
1 parent ab6ee11 commit 8be170e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Account.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ contract Account is ERC4337 {
override(EIP712)
returns (string memory, string memory)
{
return ("NANI", "1.1.1");
return ("NANI", "1.2.0");
}

/// @dev Validates userOp
Expand Down Expand Up @@ -106,7 +106,7 @@ contract Account is ERC4337 {
}
}

/// @dev Extends ERC4337 userOp validation with stored ERC7582 validator plugins.
/// @dev Extends ERC4337 userOp validation in stored ERC7582 validator plugin.
function _validateUserOp() internal virtual returns (uint256 validationData) {
assembly ("memory-safe") {
let m := mload(0x40)
Expand Down
4 changes: 2 additions & 2 deletions test/Account.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ contract AccountTest is SoladyTest {
"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
),
keccak256("NANI"),
keccak256("1.1.1"),
keccak256("1.2.0"),
block.chainid,
address(account)
)
Expand All @@ -617,7 +617,7 @@ contract AccountTest is SoladyTest {
) internal view returns (bytes32 digest) {
address _account = address(account);
bytes32 nameHash = keccak256(bytes("NANI"));
bytes32 versionHash = keccak256(bytes("1.1.1"));
bytes32 versionHash = keccak256(bytes("1.2.0"));
assembly ("memory-safe") {
let m := mload(0x40) // Load the free memory pointer.
mstore(m, _DOMAIN_TYPEHASH)
Expand Down

0 comments on commit 8be170e

Please sign in to comment.