From 0808c4a5d4067a6a91f062c5d882c1070b75e27d Mon Sep 17 00:00:00 2001 From: Jay Paik Date: Fri, 1 Dec 2023 18:19:28 -0500 Subject: [PATCH] docs: update account kit link (#22) --- README.md | 2 +- src/LightAccount.sol | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5247393..203fa5a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Light Account -A simple ERC-4337 compatible smart contract account with a designated owner account. [Account Kit](https://accountkit.alchemy.com/introduction.html) is the easiest way to integrate Light Account. +A simple ERC-4337 compatible smart contract account with a designated owner account. [Account Kit](https://accountkit.alchemy.com/overview/introduction.html) is the easiest way to integrate Light Account. ## Features diff --git a/src/LightAccount.sol b/src/LightAccount.sol index e32bb93..af44672 100644 --- a/src/LightAccount.sol +++ b/src/LightAccount.sol @@ -63,6 +63,8 @@ contract LightAccount is BaseAccount, TokenCallbackHandler, UUPSUpgradeable, Cus 0x8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f; // keccak256("LightAccountMessage(bytes message)"); bytes32 private constant LA_MSG_TYPEHASH = 0x5e3baca2936049843f06038876a12f03627b5edc98025751ecf2ac7562640199; + bytes32 private constant _NAME_HASH = keccak256(bytes("LightAccount")); + bytes32 private constant _VERSION_HASH = keccak256(bytes("1")); struct LightAccountStorage { address owner; @@ -237,8 +239,8 @@ contract LightAccount is BaseAccount, TokenCallbackHandler, UUPSUpgradeable, Cus return keccak256( abi.encode( DOMAIN_SEPARATOR_TYPEHASH, - abi.encode("LightAccount"), // name - abi.encode("1"), // version + _NAME_HASH, // name + _VERSION_HASH, // version block.chainid, // chainId address(this) // verifying contract )