ensdomains / ensjs

ENS javascript library for contract interaction
MIT License
120 stars 56 forks source link

getNameHistory SyntaxError: Failed to parse String to BigInt #194

Closed pugson closed 1 week ago

pugson commented 1 week ago

Calling getNameHistory fails for this specific ENS.

await getNameHistory(client, { name: 'artiom.eth' })
⏳ 2.12s to resolve artiom.eth (0xa582360da4ae1fbb912c975fcce1a0c0e2af91e8)
208 |                         coinName: null,
209 |                         decoded: false,
210 |                         addr: multiaddr,
211 |                     };
212 |                 }
213 |                 if (BigInt(multiaddr) === 0n) {
                          ^
SyntaxError: Failed to parse String to BigInt
      at /Users/pugson/Sites/ens-resolver-api/node_modules/@ensdomains/ensjs/dist/esm/functions/subgraph/getNameHistory.js:213:21
      at map (:1:11)
      at /Users/pugson/Sites/ens-resolver-api/node_modules/@ensdomains/ensjs/dist/esm/functions/subgraph/getNameHistory.js:194:60