Skip to content

Commit

Permalink
v1.2.1: ethers version bump to fix labelhash
Browse files Browse the repository at this point in the history
  • Loading branch information
sshmatrix committed Dec 22, 2023
1 parent 115aa87 commit f82fe41
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 0 additions & 3 deletions components/Preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1092,9 +1092,6 @@ const Preview: React.FC<ModalProps> = ({ 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]) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 3 additions & 2 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit f82fe41

Please sign in to comment.