@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xobelisk/sui-client",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Tookit for interacting with move eps framework",
5
5
  "keywords": [
6
6
  "sui",
package/src/dubhe.ts CHANGED
@@ -699,20 +699,20 @@ export class Dubhe {
699
699
 
700
700
  async state({
701
701
  schema,
702
- struct,
702
+ field,
703
703
  objectId,
704
704
  storageType,
705
705
  params,
706
706
  }: {
707
707
  schema: string;
708
- struct: string;
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_${struct}`;
715
+ const functionName = `get_${field}`;
716
716
  const schemaObject = tx.object(objectId);
717
717
  // Parse storage type
718
718
  const storageValueMatch = storageType.match(/^StorageValue<(.+)>$/);