-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Context
I am trying to compose a dummy identity.setIdentity call
const call = api.tx.identity.setIdentity({
display: {
type: "Raw",
value: formData.displayName,
},
email: {
type: "Raw",
value: formData.email,
},
additional: [
[{
type: "Raw",
value: "discord",
},
{
type: "Raw",
value: "Open Hack Dedot",
}]
],
legal: {
type: "None",
},
web: {
type: "None",
},
riot: {
type: "None",
},
image: {
type: "None",
},
twitter: {
type: "None",
}
})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)
When I try the simpler call like remark
const call = api.tx.system.remark(formData.displayName)I am able to create a proper tx
Metadata
Metadata
Assignees
Labels
No labels