@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.
- package/dist/viem/index.cjs +16 -19
- package/dist/viem/index.cjs.map +1 -1
- package/dist/viem/index.js +16 -19
- package/dist/viem/index.js.map +1 -1
- package/package.json +1 -1
- package/src/viem/crossChainFlows.ts +21 -23
package/dist/viem/index.cjs
CHANGED
|
@@ -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
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
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
|
}
|