From 9cc34848659eb88adc03460b32f6b0fb934498f4 Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Fri, 25 Aug 2023 09:42:07 -0700 Subject: [PATCH] fix: pass overrides from tx to user op Signed-off-by: Raymond Feng --- packages/core/src/provider/base.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/core/src/provider/base.ts b/packages/core/src/provider/base.ts index 2232bb04aa..dc0f3227fd 100644 --- a/packages/core/src/provider/base.ts +++ b/packages/core/src/provider/base.ts @@ -221,11 +221,14 @@ export class SmartAccountProvider< overrides.maxPriorityFeePerGas = request.maxPriorityFeePerGas; } - return this.buildUserOperation({ - target: request.to, - data: request.data ?? "0x", - value: request.value ? fromHex(request.value, "bigint") : 0n, - }); + return this.buildUserOperation( + { + target: request.to, + data: request.data ?? "0x", + value: request.value ? fromHex(request.value, "bigint") : 0n, + }, + overrides + ); }; sendTransactions = async (requests: RpcTransactionRequest[]) => {