There was an error while loading. Please reload this page.
1 parent 68ca44c commit d307c63Copy full SHA for d307c63
1 file changed
scripts/update-ens.mjs
@@ -89,7 +89,9 @@ async function main() {
89
console.log(`Original CID: ${IPFS_CID}`)
90
if (cidForEns !== IPFS_CID) console.log(`Converted to CIDv0: ${cidForEns}`)
91
console.log(`Encoded contenthash (hex, 0x-prefixed) length=${encoded.length}`)
92
- const tx = await resolver.setContenthash(node, encoded)
+ const encodedBytes = getBytes(encoded)
93
+ console.log(`Encoded contenthash bytes length=${encodedBytes.length}`)
94
+ const tx = await resolver.setContenthash(node, encodedBytes)
95
console.log(`Submitted tx: ${tx.hash}`)
96
const receipt = await tx.wait()
97
console.log(`Confirmed in block ${receipt.blockNumber}`)
0 commit comments