You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using query.identity.identityof on typescript. Identity object will be undefined. I tried using older versions of the library 11.x and 12.x and also tried different rpc providers with no luck. Weird because before september this was working just fine.
Bug report
Feature request
Support request
Other
What is the current behavior and expected behavior?
I expect query.identity not being undefined.
Version: 13.x 12.x 11.x
Environment: Ubuntu 20.24
Node.js: v20.16.0
Browser
Other (limited support for other environments)
Language:
JavaScript
TypeScript (include tsc --version)
Other
The text was updated successfully, but these errors were encountered:
bizk
changed the title
query.identity is undefined
BUG: query.identity is undefined
Oct 1, 2024
// Connect to the Polkadot networkconstprovider=newWsProvider('wss://rpc.polkadot.io');// You can use other endpoints if neededconstapi=awaitApiPromise.create({ provider });// Fetch the identity information for the validatorconst{ identity }=awaitapi.query.identity.identityOf(validatorAddress);// Check if the identity existsif(identity&&identity.display&&identity.display.asRaw){console.log(`Validator ${validatorAddress} has an identity: ${identity.display.asRaw.toString()}`);}else{console.log(`Validator ${validatorAddress} does not have an identity.`);}// Disconnect from the APIawaitapi.disconnect();
When using
query.identity.identityof
on typescript. Identity object will be undefined. I tried using older versions of the library 11.x and 12.x and also tried different rpc providers with no luck. Weird because before september this was working just fine.I expect query.identity not being undefined.
Version: 13.x 12.x 11.x
Environment: Ubuntu 20.24
Language:
The text was updated successfully, but these errors were encountered: