@interfold/sdk 0.9.0 → 0.11.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.
package/dist/index.js CHANGED
@@ -12,7 +12,6 @@ import {
12
12
  createPublicClient,
13
13
  createWalletClient,
14
14
  http,
15
- zeroHash,
16
15
  webSocket
17
16
  } from "viem";
18
17
  import { privateKeyToAccount } from "viem/accounts";
@@ -367,6 +366,11 @@ var ContractClient = class _ContractClient {
367
366
  async getE3Quote(requestParams) {
368
367
  try {
369
368
  const committeeSize = validateCommitteeSize(requestParams.committeeSize);
369
+ const expectedCryptoConfigId = await this.publicClient.readContract({
370
+ address: this.contracts.interfold,
371
+ abi: Interfold__factory.abi,
372
+ functionName: "activeCryptoConfigId"
373
+ });
370
374
  return this.publicClient.readContract({
371
375
  address: this.contracts.interfold,
372
376
  abi: Interfold__factory.abi,
@@ -380,7 +384,7 @@ var ContractClient = class _ContractClient {
380
384
  computeProviderParams: requestParams.computeProviderParams,
381
385
  customParams: requestParams.customParams || "0x",
382
386
  expectedFeeToken: this.contracts.feeToken,
383
- expectedCryptoConfigId: zeroHash,
387
+ expectedCryptoConfigId,
384
388
  maxFee: requestParams.maxFee ?? 0n
385
389
  }
386
390
  ]