From eb33a77e098d95d5b8d5c97cff7f362fc275ba7c Mon Sep 17 00:00:00 2001 From: Eugene Chybisov <18644653+chybisov@users.noreply.github.com> Date: Tue, 2 Sep 2025 11:25:21 +0200 Subject: [PATCH 1/4] fix: use getAction within waitForCallsStatus --- src/actions/wallet/waitForCallsStatus.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/actions/wallet/waitForCallsStatus.ts b/src/actions/wallet/waitForCallsStatus.ts index 12c75ab537..f4bdb74e9b 100644 --- a/src/actions/wallet/waitForCallsStatus.ts +++ b/src/actions/wallet/waitForCallsStatus.ts @@ -4,6 +4,7 @@ import { BaseError } from '../../errors/base.js' import { BundleFailedError } from '../../errors/calls.js' import type { ErrorType } from '../../errors/utils.js' import type { Chain } from '../../types/chain.js' +import { getAction } from '../../utils/getAction.js' import { type ObserveErrorType, observe } from '../../utils/observe.js' import { type PollErrorType, poll } from '../../utils/poll.js' import { withResolvers } from '../../utils/promise/withResolvers.js' @@ -123,7 +124,11 @@ export async function waitForCallsStatus( try { const result = await withRetry( async () => { - const result = await getCallsStatus(client, { id }) + const result = await getAction( + client, + getCallsStatus, + 'getCallsStatus' + )({ id }) if (throwOnFailure && result.status === 'failure') throw new BundleFailedError(result) return result From 6552ea22b00f36bec712ef85aeab1f18b6753829 Mon Sep 17 00:00:00 2001 From: Eugene Chybisov Date: Tue, 2 Sep 2025 11:32:52 +0200 Subject: [PATCH 2/4] chore: add changeset --- .changeset/kind-boxes-walk.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/kind-boxes-walk.md diff --git a/.changeset/kind-boxes-walk.md b/.changeset/kind-boxes-walk.md new file mode 100644 index 0000000000..f738059bfa --- /dev/null +++ b/.changeset/kind-boxes-walk.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Use getAction within waitForCallsStatus From 188dd41112c7bd2ec4efcec414e4d3388ba1418b Mon Sep 17 00:00:00 2001 From: Eugene Chybisov <18644653+chybisov@users.noreply.github.com> Date: Tue, 2 Sep 2025 11:33:46 +0200 Subject: [PATCH 3/4] chore: update changeset --- .changeset/kind-boxes-walk.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/kind-boxes-walk.md b/.changeset/kind-boxes-walk.md index f738059bfa..8f2a780b86 100644 --- a/.changeset/kind-boxes-walk.md +++ b/.changeset/kind-boxes-walk.md @@ -2,4 +2,4 @@ "viem": patch --- -Use getAction within waitForCallsStatus +Use `getAction` within `waitForCallsStatus` From 4ab25ee554b9a47d7cb088892493644d91ad88f7 Mon Sep 17 00:00:00 2001 From: jxom <7336481+jxom@users.noreply.github.com> Date: Wed, 3 Sep 2025 08:31:41 +1000 Subject: [PATCH 4/4] Add getAction to waitForCallsStatus --- .changeset/kind-boxes-walk.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/kind-boxes-walk.md b/.changeset/kind-boxes-walk.md index 8f2a780b86..726dd3f7f9 100644 --- a/.changeset/kind-boxes-walk.md +++ b/.changeset/kind-boxes-walk.md @@ -2,4 +2,4 @@ "viem": patch --- -Use `getAction` within `waitForCallsStatus` +Added `getAction` to `waitForCallsStatus`.