@0xobelisk/sui-client 1.0.1 → 1.0.2
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/index.js +11 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dubhe.ts +11 -9
package/dist/index.js
CHANGED
|
@@ -1517,7 +1517,9 @@ var Dubhe = class {
|
|
|
1517
1517
|
const storageDoubleMapMatch = storageType.match(
|
|
1518
1518
|
/^StorageDoubleMap<(.+),\s*(.+),\s*(.+)>$/
|
|
1519
1519
|
);
|
|
1520
|
-
let processedParams = [
|
|
1520
|
+
let processedParams = [
|
|
1521
|
+
schemaObject
|
|
1522
|
+
];
|
|
1521
1523
|
if (storageValueMatch) {
|
|
1522
1524
|
if (params.length > 0) {
|
|
1523
1525
|
console.warn(
|
|
@@ -1820,21 +1822,21 @@ _processKeyParameter = new WeakSet();
|
|
|
1820
1822
|
processKeyParameter_fn = function(tx, keyType, value) {
|
|
1821
1823
|
switch (keyType.toLowerCase()) {
|
|
1822
1824
|
case "u8":
|
|
1823
|
-
return tx.pure(value
|
|
1825
|
+
return tx.pure.u8(value);
|
|
1824
1826
|
case "u16":
|
|
1825
|
-
return tx.pure(value
|
|
1827
|
+
return tx.pure.u16(value);
|
|
1826
1828
|
case "u32":
|
|
1827
|
-
return tx.pure(value
|
|
1829
|
+
return tx.pure.u32(value);
|
|
1828
1830
|
case "u64":
|
|
1829
|
-
return tx.pure(value
|
|
1831
|
+
return tx.pure.u64(value);
|
|
1830
1832
|
case "u128":
|
|
1831
|
-
return tx.pure(value
|
|
1833
|
+
return tx.pure.u128(value);
|
|
1832
1834
|
case "u256":
|
|
1833
|
-
return tx.pure(value
|
|
1835
|
+
return tx.pure.u256(value);
|
|
1834
1836
|
case "bool":
|
|
1835
|
-
return tx.pure(value
|
|
1837
|
+
return tx.pure.bool(value);
|
|
1836
1838
|
case "address":
|
|
1837
|
-
return tx.pure(value
|
|
1839
|
+
return tx.pure.address(value);
|
|
1838
1840
|
default:
|
|
1839
1841
|
if (keyType.includes("::")) {
|
|
1840
1842
|
return tx.object(value);
|