@oydual31/more-vaults-sdk 1.1.7 → 1.1.8

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.
@@ -2513,25 +2513,22 @@ async function waitForCompose(hubPublicClient, composeData, receiver, pollInterv
2513
2513
  for (const log of logs) {
2514
2514
  const args = log.args;
2515
2515
  if (args.to && viem.getAddress(args.to) === composer && args.message?.toLowerCase().includes(receiverNeedle)) {
2516
- try {
2517
- const hash = await hubPublicClient.readContract({
2518
- address: endpoint,
2519
- abi: LZ_ENDPOINT_ABI,
2520
- functionName: "composeQueue",
2521
- args: [viem.getAddress(args.from), composer, args.guid, args.index ?? 0]
2522
- });
2523
- if (hash !== EMPTY_HASH && hash !== RECEIVED_HASH) {
2524
- console.log(`[${elapsed}s] Poll #${attempt} \u2014 compose found! (block ${log.blockNumber}, scanned from ${startBlock})`);
2525
- return {
2526
- ...composeData,
2527
- from: viem.getAddress(args.from),
2528
- to: composer,
2529
- guid: args.guid,
2530
- index: args.index ?? 0,
2531
- message: args.message
2532
- };
2533
- }
2534
- } catch {
2516
+ const hash = await hubPublicClient.readContract({
2517
+ address: endpoint,
2518
+ abi: LZ_ENDPOINT_ABI,
2519
+ functionName: "composeQueue",
2520
+ args: [viem.getAddress(args.from), composer, args.guid, args.index ?? 0]
2521
+ });
2522
+ if (hash !== EMPTY_HASH && hash !== RECEIVED_HASH) {
2523
+ console.log(`[${elapsed}s] Poll #${attempt} \u2014 compose found! (block ${log.blockNumber}, scanned from ${startBlock})`);
2524
+ return {
2525
+ ...composeData,
2526
+ from: viem.getAddress(args.from),
2527
+ to: composer,
2528
+ guid: args.guid,
2529
+ index: args.index ?? 0,
2530
+ message: args.message
2531
+ };
2535
2532
  }
2536
2533
  }
2537
2534
  }