Skip to content

Commit

Permalink
fix: pass overrides from tx to user op (#88)
Browse files Browse the repository at this point in the history
Signed-off-by: Raymond Feng <enjoyjava@gmail.com>
  • Loading branch information
raymondfeng committed Aug 25, 2023
1 parent 5fb65b7 commit 985cb99
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/core/src/provider/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[]) => {
Expand Down

0 comments on commit 985cb99

Please sign in to comment.