@taquito/michelson-encoder 16.1.2 → 16.2.0
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/dist/lib/tokens/option.js +5 -4
- package/dist/lib/tokens/option.js.map +1 -1
- package/dist/lib/version.js +2 -2
- package/dist/taquito-michelson-encoder.es6.js +7 -6
- package/dist/taquito-michelson-encoder.es6.js.map +1 -1
- package/dist/taquito-michelson-encoder.umd.js +7 -6
- package/dist/taquito-michelson-encoder.umd.js.map +1 -1
- package/dist/types/tokens/option.d.ts +9 -3
- package/package.json +4 -5
|
@@ -1703,24 +1703,25 @@
|
|
|
1703
1703
|
return { prim: 'Some', args: [this.schema().Encode(args)] };
|
|
1704
1704
|
}
|
|
1705
1705
|
EncodeObject(args, semantic) {
|
|
1706
|
-
|
|
1706
|
+
let value = args;
|
|
1707
1707
|
if (value === undefined || value === null) {
|
|
1708
1708
|
return { prim: 'None' };
|
|
1709
1709
|
}
|
|
1710
|
+
value = typeof value === 'object' && 'Some' in value ? value['Some'] : value;
|
|
1710
1711
|
return { prim: 'Some', args: [this.schema().EncodeObject(value, semantic)] };
|
|
1711
1712
|
}
|
|
1712
1713
|
Execute(val, semantics) {
|
|
1713
1714
|
if (val.prim === 'None') {
|
|
1714
1715
|
return null;
|
|
1715
1716
|
}
|
|
1716
|
-
return this.schema().Execute(val.args[0], semantics);
|
|
1717
|
+
return { Some: this.schema().Execute(val.args[0], semantics) };
|
|
1717
1718
|
}
|
|
1718
1719
|
/**
|
|
1719
1720
|
* @deprecated ExtractSchema has been deprecated in favor of generateSchema
|
|
1720
1721
|
*
|
|
1721
1722
|
*/
|
|
1722
1723
|
ExtractSchema() {
|
|
1723
|
-
return this.schema().ExtractSchema();
|
|
1724
|
+
return { Some: this.schema().ExtractSchema() };
|
|
1724
1725
|
}
|
|
1725
1726
|
generateSchema() {
|
|
1726
1727
|
return {
|
|
@@ -1729,7 +1730,7 @@
|
|
|
1729
1730
|
};
|
|
1730
1731
|
}
|
|
1731
1732
|
ExtractSignature() {
|
|
1732
|
-
return [...this.schema().ExtractSignature()
|
|
1733
|
+
return [...this.schema().ExtractSignature()];
|
|
1733
1734
|
}
|
|
1734
1735
|
get KeySchema() {
|
|
1735
1736
|
return this.schema();
|
|
@@ -3920,8 +3921,8 @@
|
|
|
3920
3921
|
|
|
3921
3922
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
|
|
3922
3923
|
const VERSION = {
|
|
3923
|
-
"commitHash": "
|
|
3924
|
-
"version": "16.
|
|
3924
|
+
"commitHash": "adc0f8c31492e8eb2f03b06ac36ba053e8ba6224",
|
|
3925
|
+
"version": "16.2.0"
|
|
3925
3926
|
};
|
|
3926
3927
|
|
|
3927
3928
|
/**
|