Skip to content

Commit

Permalink
don't compute gas locally
Browse files Browse the repository at this point in the history
  • Loading branch information
holic committed Nov 10, 2024
1 parent c23f4f5 commit b0257a4
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,6 @@ export async function sendUserOperation({
}

const userOp = formatUserOperation(rpcUserOp);
const gas =
userOp.preVerificationGas +
userOp.verificationGasLimit +
(userOp.paymasterVerificationGasLimit ?? 0n) +
(userOp.paymasterPostOpGasLimit ?? 0n) +
userOp.callGasLimit;

const packedUserOp = toPackedUserOperation(userOp);

const userOpHash = getUserOperationHash({
Expand All @@ -73,7 +66,6 @@ export async function sendUserOperation({
args: [[packedUserOp], executor.account.address],
chain: executor.chain,
account: executor.account,
gas,
});

const receipt = await getAction(
Expand Down

0 comments on commit b0257a4

Please sign in to comment.