@alephium/web3 1.2.3 → 1.2.4

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.
@@ -1253,7 +1253,7 @@ async function multicallMethods(contract, instance, calls, getContractByCodeHash
1253
1253
  const callsResult = {};
1254
1254
  callsParams.forEach((call, index) => {
1255
1255
  const methodIndex = call.methodIndex;
1256
- const callResult = result.results[`${methodIndex}`];
1256
+ const callResult = result.results[`${index}`];
1257
1257
  const methodName = callEntries[`${index}`][`0`];
1258
1258
  callsResult[`${methodName}`] = contract.contract.fromApiCallContractResult(callResult, call.txId, methodIndex, getContractByCodeHash);
1259
1259
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alephium/web3",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "A JS/TS library to interact with the Alephium platform",
5
5
  "license": "GPL",
6
6
  "main": "dist/src/index.js",
@@ -1940,7 +1940,7 @@ export async function multicallMethods<I extends ContractInstance, F extends Fie
1940
1940
  const callsResult: Record<string, CallContractResult<any>> = {}
1941
1941
  callsParams.forEach((call, index) => {
1942
1942
  const methodIndex = call.methodIndex
1943
- const callResult = result.results[`${methodIndex}`]
1943
+ const callResult = result.results[`${index}`]
1944
1944
  const methodName = callEntries[`${index}`][`0`]
1945
1945
  callsResult[`${methodName}`] = contract.contract.fromApiCallContractResult(
1946
1946
  callResult,