Update metadata (#5499)
* Updata metadata * Rebuild * Adjust generation
This commit is contained in:
@@ -42,9 +42,9 @@
|
||||
"@polkadot/types-codec": "9.14.2-7-x",
|
||||
"@polkadot/types-create": "9.14.2-7-x",
|
||||
"@polkadot/types-support": "9.14.2-7-x",
|
||||
"@polkadot/util": "^10.4.1",
|
||||
"@polkadot/util-crypto": "^10.4.1",
|
||||
"@polkadot/x-ws": "^10.4.1",
|
||||
"@polkadot/util": "^10.4.2",
|
||||
"@polkadot/util-crypto": "^10.4.2",
|
||||
"@polkadot/x-ws": "^10.4.2",
|
||||
"handlebars": "^4.7.7",
|
||||
"websocket": "^1.0.34",
|
||||
"yargs": "^17.6.2"
|
||||
|
||||
@@ -50,16 +50,14 @@ function entrySignature (lookup: PortableRegistry, allDefs: Record<string, Modul
|
||||
storageEntry.modifier.isOptional
|
||||
? 'Option'
|
||||
: null,
|
||||
defValue.lookupName
|
||||
? undefined
|
||||
: defValue.type
|
||||
defValue.lookupName || defValue.type
|
||||
]);
|
||||
|
||||
return [
|
||||
storageEntry.modifier.isOptional,
|
||||
keyDefs.map((k) => formatType(registry, allDefs, k.lookupName || k.type, imports)).join(', '),
|
||||
keyTypes.map((t, i) => `arg${keyTypes.length === 1 ? '' : (i + 1)}: ${t}`).join(', '),
|
||||
formatType(registry, allDefs, outputType, imports)
|
||||
outputType.lookupName || formatType(registry, allDefs, outputType, imports)
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user