From f82fe418636ce9d7fb1e80479eef3833414bc9b1 Mon Sep 17 00:00:00 2001 From: sshmatrix Date: Fri, 22 Dec 2023 18:28:37 +0530 Subject: [PATCH] v1.2.1: ethers version bump to fix labelhash --- components/Preview.tsx | 3 --- package.json | 2 +- pages/index.tsx | 5 +++-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/components/Preview.tsx b/components/Preview.tsx index 6efe5b94..bbac48eb 100644 --- a/components/Preview.tsx +++ b/components/Preview.tsx @@ -1092,9 +1092,6 @@ const Preview: React.FC = ({ show, onClose, _ENS_, chain, handlePare '_sequence': '' } } - console.log(_IPFS) - console.log(_history) - console.log(_Storage) setHashIPFS(_IPFS._value.split('/')[2]) if (_history.ownerstamp.length >= 1) { if ((_IPFS._sequence && _history.timestamp.revision) && (Number(_IPFS._sequence) === Number(_history.timestamp.revision) - 1) && _Storage[1]) { diff --git a/package.json b/package.json index c0a5d9c6..fe47e37a 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "dag-cbor-sync": "^0.6.3", "ed25519-1.6.1": "npm:@noble/ed25519@^1.6", "ed25519-2.0.0": "npm:@noble/ed25519@^2.0", - "ethers": "^5.6.1", + "ethers": "^5.7.2", "framer-motion": "^6.3.3", "fs": "^0.0.1-security", "ipfs-http-client": "^60.0.1", diff --git a/pages/index.tsx b/pages/index.tsx index 3291e790..a4f8b9cf 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -490,11 +490,12 @@ const Home: NextPage = () => { let __namehash = ethers.utils.namehash(query) let __token = ethers.BigNumber.from(__namehash) setTokenIDWrapper(String(__token)) + + // BROWSER let __labelhash = ethers.utils.keccak256(ethers.utils.toUtf8Bytes(query.split('.eth')[0])) setNamehashLegacy(__namehash) setTokenIDLegacy(String(ethers.BigNumber.from(__labelhash))) - } catch (error) { - } + } catch { } } // eslint-disable-next-line react-hooks/exhaustive-deps }, [query, owner, manager])