@axonfi/sdk 0.15.0 → 0.15.1
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/README.md +1 -1
- package/dist/index.cjs +4 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3531,13 +3531,11 @@ async function deployVault(walletClient, publicClient, relayerUrl) {
|
|
|
3531
3531
|
chain: walletClient.chain ?? null
|
|
3532
3532
|
});
|
|
3533
3533
|
const receipt = await publicClient.waitForTransactionReceipt({ hash });
|
|
3534
|
+
const vaultDeployedSig = "0x42315f4340c2734f2a8ef1b71fd45068eafc3ed5730a08a98e8d7ef57105626a";
|
|
3534
3535
|
for (const log of receipt.logs) {
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
return vaultAddress;
|
|
3539
|
-
}
|
|
3540
|
-
} catch {
|
|
3536
|
+
if (log.topics.length >= 3 && log.topics[0] === vaultDeployedSig && log.topics[2]) {
|
|
3537
|
+
const vaultAddress = `0x${log.topics[2].slice(26)}`;
|
|
3538
|
+
return vaultAddress;
|
|
3541
3539
|
}
|
|
3542
3540
|
}
|
|
3543
3541
|
throw new Error("VaultDeployed event not found in transaction receipt");
|