This commit is contained in:
Jaco
2022-05-30 15:42:31 +03:00
committed by GitHub
parent 06cb4aadfa
commit bd0b6426a7
20 changed files with 191 additions and 187 deletions
+5 -5
View File
@@ -20,20 +20,20 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "8.6.2-1",
"version": "8.6.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.3",
"@polkadot/keyring": "^9.3.1",
"@polkadot/types-augment": "8.6.2-1",
"@polkadot/types-codec": "8.6.2-1",
"@polkadot/types-create": "8.6.2-1",
"@polkadot/types-augment": "8.6.2",
"@polkadot/types-codec": "8.6.2",
"@polkadot/types-create": "8.6.2",
"@polkadot/util": "^9.3.1",
"@polkadot/util-crypto": "^9.3.1",
"rxjs": "^7.5.5"
},
"devDependencies": {
"@polkadot/keyring": "^9.3.1",
"@polkadot/types-support": "8.6.2-1"
"@polkadot/types-support": "8.6.2"
}
}
@@ -784,12 +784,13 @@ export class PortableRegistry extends Struct implements ILookup {
if (specialVariant === 'Option') {
const sub = this.#createSiDef(params[0].type.unwrap());
if (sub.type === 'bool') {
return withTypeString(this.registry, {
info: TypeDefInfo.Plain,
type: 'OptionBool'
});
}
// NOTE This is opt-in (unhandled), not by default
// if (sub.type === 'bool') {
// return withTypeString(this.registry, {
// info: TypeDefInfo.Plain,
// type: 'OptionBool'
// });
// }
return withTypeString(this.registry, {
info: TypeDefInfo.Option,