Skip to content

Commit

Permalink
remove unnecessary type assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
sherifahmed990 committed Sep 9, 2024
1 parent 43d3cf7 commit 165d2f8
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
CandidePaymaster,
getFunctionSelector,
createCallData,
UserOperationV7
} from "abstractionkit";

async function main(): Promise<void> {
Expand Down Expand Up @@ -75,7 +74,7 @@ async function main(): Promise<void> {

let [paymasterUserOperation, _sponsorMetadata] = await paymaster.createSponsorPaymasterUserOperation(
userOperation, bundlerUrl)
userOperation = paymasterUserOperation as UserOperationV7;
userOperation = paymasterUserOperation;


const cost = calculateUserOperationMaxGasCost(userOperation)
Expand Down

0 comments on commit 165d2f8

Please sign in to comment.