Skip to content

Commit db40029

Browse files
authored
fix: Await chain check for sponsored EOA transactions support (#828)
1 parent 9e2270d commit db40029

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/shared/utils/transaction/simulate-queued-transaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const doSimulateTransaction = async (
6464
});
6565

6666
if (transaction.transactionMode === "sponsored") {
67-
if (!isZkSyncChain(chain)) {
67+
if (!(await isZkSyncChain(chain))) {
6868
throw new Error(
6969
"Sponsored EOA transactions are only supported on zkSync chains.",
7070
);

src/worker/tasks/send-transaction-worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ const _sendTransaction = async (
290290
let account: Account;
291291

292292
if (queuedTransaction.transactionMode === "sponsored") {
293-
if (!isZkSyncChain(chain)) {
293+
if (!(await isZkSyncChain(chain))) {
294294
job.log(
295295
"Sponsored EOA transactions are only supported on zkSync chains.",
296296
);

0 commit comments

Comments
 (0)