From 02420484b48cc117f21bd0b99de2ffa015648c7f Mon Sep 17 00:00:00 2001 From: adnpark Date: Thu, 7 Mar 2024 23:47:51 +0900 Subject: [PATCH] feat: wait for receipt of deployment --- src/action/deployContracts.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/action/deployContracts.ts b/src/action/deployContracts.ts index 3bf2902..5002375 100644 --- a/src/action/deployContracts.ts +++ b/src/action/deployContracts.ts @@ -1,6 +1,6 @@ import chalk from "chalk" import ora from "ora" -import { SmartAccountClient } from "permissionless" +import { SmartAccountClient, bundlerActions } from "permissionless" import { http, Address, @@ -88,6 +88,11 @@ export const deployToChain = async ( }) } }) + + const bundlerClient = kernelAccountClient.extend(bundlerActions) + await bundlerClient.waitForUserOperationReceipt({ + hash: opHash + }) return [getAddress(result.data as Address), opHash] }