@alephium/web3 1.0.7-rc.1 → 1.1.0-rc.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.
@@ -209,7 +209,7 @@ export interface CallContractParams<T extends Arguments = Arguments> {
209
209
  worldStateBlockHash?: string;
210
210
  txId?: string;
211
211
  existingContracts?: string[];
212
- inputAssets?: node.TestInputAsset[];
212
+ inputAssets?: InputAsset[];
213
213
  }
214
214
  export interface CallContractResult<R> {
215
215
  returns: R;
@@ -375,7 +375,8 @@ class Contract extends Artifact {
375
375
  group: groupIndex,
376
376
  address: contractAddress,
377
377
  methodIndex: methodIndex,
378
- args: args
378
+ args: args,
379
+ inputAssets: toApiInputAssets(params.inputAssets)
379
380
  };
380
381
  }
381
382
  fromApiCallContractResult(result, txId, methodIndex, getContractByCodeHash) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alephium/web3",
3
- "version": "1.0.7-rc.1",
3
+ "version": "1.1.0-rc.0",
4
4
  "description": "A JS/TS library to interact with the Alephium platform",
5
5
  "license": "GPL",
6
6
  "main": "dist/src/index.js",
@@ -590,7 +590,8 @@ export class Contract extends Artifact {
590
590
  group: groupIndex,
591
591
  address: contractAddress,
592
592
  methodIndex: methodIndex,
593
- args: args
593
+ args: args,
594
+ inputAssets: toApiInputAssets(params.inputAssets)
594
595
  }
595
596
  }
596
597
 
@@ -1045,7 +1046,7 @@ export interface CallContractParams<T extends Arguments = Arguments> {
1045
1046
  worldStateBlockHash?: string
1046
1047
  txId?: string
1047
1048
  existingContracts?: string[]
1048
- inputAssets?: node.TestInputAsset[]
1049
+ inputAssets?: InputAsset[]
1049
1050
  }
1050
1051
 
1051
1052
  export interface CallContractResult<R> {