@polkadot/types-codec 7.11.2-4 → 7.11.2-7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base/Option.cjs +1 -1
- package/base/Option.js +1 -1
- package/package.json +1 -1
- package/packageInfo.cjs +1 -1
- package/packageInfo.js +1 -1
package/base/Option.cjs
CHANGED
|
@@ -31,7 +31,7 @@ function decodeOption(registry, Type, value) {
|
|
|
31
31
|
value = value.value;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
if ((0, _util.isNull)(value) || (0, _util.isUndefined)(value) || value === '0x') {
|
|
34
|
+
if ((0, _util.isNull)(value) || (0, _util.isUndefined)(value) || value === '0x' || value instanceof None) {
|
|
35
35
|
return new None(registry);
|
|
36
36
|
} else if (value instanceof Type) {
|
|
37
37
|
// don't re-create, use as it (which also caters for derived types)
|
package/base/Option.js
CHANGED
|
@@ -22,7 +22,7 @@ function decodeOption(registry, Type, value) {
|
|
|
22
22
|
value = value.value;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
if (isNull(value) || isUndefined(value) || value === '0x') {
|
|
25
|
+
if (isNull(value) || isUndefined(value) || value === '0x' || value instanceof None) {
|
|
26
26
|
return new None(registry);
|
|
27
27
|
} else if (value instanceof Type) {
|
|
28
28
|
// don't re-create, use as it (which also caters for derived types)
|
package/package.json
CHANGED
package/packageInfo.cjs
CHANGED
package/packageInfo.js
CHANGED