@0xobelisk/sui-client 1.0.2 → 1.0.3
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/dubhe.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dubhe.ts +3 -3
package/package.json
CHANGED
package/src/dubhe.ts
CHANGED
|
@@ -699,20 +699,20 @@ export class Dubhe {
|
|
|
699
699
|
|
|
700
700
|
async state({
|
|
701
701
|
schema,
|
|
702
|
-
|
|
702
|
+
field,
|
|
703
703
|
objectId,
|
|
704
704
|
storageType,
|
|
705
705
|
params,
|
|
706
706
|
}: {
|
|
707
707
|
schema: string;
|
|
708
|
-
|
|
708
|
+
field: string;
|
|
709
709
|
objectId: string;
|
|
710
710
|
storageType: string; // 'StorageValue<V>' | 'StorageMap<K, V>' | 'StorageDoubleMap<K1, K2, V>'
|
|
711
711
|
params: any[];
|
|
712
712
|
}) {
|
|
713
713
|
const tx = new Transaction();
|
|
714
714
|
const moduleName = `${schema}_schema`;
|
|
715
|
-
const functionName = `get_${
|
|
715
|
+
const functionName = `get_${field}`;
|
|
716
716
|
const schemaObject = tx.object(objectId);
|
|
717
717
|
// Parse storage type
|
|
718
718
|
const storageValueMatch = storageType.match(/^StorageValue<(.+)>$/);
|