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
However based on the types everything is correct but the call results in the fail
UserForm.tsx:92 Error: TypeError: Cannot read properties of undefined (reading 'type')
at Object.encode (dedot.js?v=49664071:3591:15)
at Shape.subEncode (dedot.js?v=49664071:2310:43)
at Shape.subEncode (dedot.js?v=49664071:1640:14)
at dedot.js?v=49664071:1692:14
at Array.forEach (<anonymous>)
at Shape.subEncode (dedot.js?v=49664071:1691:13)
at Shape.subEncode (dedot.js?v=49664071:1640:14)
at dedot.js?v=49664071:1692:14
at Array.forEach (<anonymous>)
at Shape.subEncode (dedot.js?v=49664071:1691:13)
What is the chain that you're connecting to to set the identity. Different chain might have different types for the identity pallet. So e.g if you're connecting to Westend you might want to use WestendApi when constructing the client.
import{DedotClient,WsProvider}from'dedot';import{WestendApi}from'@dedot/chaintypes';import{WESTEND}from'./networks.ts';// initialize the client and connect to the networkconstclient=newDedotClient<WestendApi>(newWsProvider(WESTEND.endpoint));awaitclient.connect();// OR via static factoryconstclient=awaitDedotClient.new<WestendApi>(newWsProvider(WESTEND.endpoint));
You might want to update the @dedot/chaintypes package to the latest version so the types will be updated as well to reflect the latest metadata changes.
You might also want to update dedot package to the latest version as well.
Context
I am trying to compose a dummy
identity.setIdentity
callHowever based on the types everything is correct but the call results in the fail
When I try the simpler call like remark
I am able to create a proper tx
The text was updated successfully, but these errors were encountered: