Skip to content

Commit

Permalink
Space
Browse files Browse the repository at this point in the history
  • Loading branch information
Drewmo123 committed Jan 15, 2025
1 parent 40d74d7 commit cd8e73c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/utils/blockchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export const getUserOpHash = async (
pad(toHex(userOp.verificationGasLimit), { size: 16 }),
pad(toHex(userOp.callGasLimit), { size: 16 }),
]);

const gasFees = concatHex([
pad(toHex(userOp.maxPriorityFeePerGas), { size: 16 }),
pad(toHex(userOp.maxFeePerGas), { size: 16 }),
Expand Down Expand Up @@ -139,7 +138,6 @@ export const signMessageEIP1193 = async ({
if (!addresses.map(address => address.toLowerCase()).includes(signer.address.toLowerCase())) {
logAndExit(`Connected wallet does not contain the signer address: ${signer.address}`);
}

logger.info(`Requesting signature from ${signer.address}, please check your wallet app and approve the signature request`);
const signature = await walletClient.signMessage({
account: signer.address,
Expand Down Expand Up @@ -233,7 +231,6 @@ export const estimateUserOp = async ({
});

const feesPerGas = await publicClient.estimateFeesPerGas();

if (feesPerGas.maxFeePerGas === null || feesPerGas.maxFeePerGas === undefined || feesPerGas.maxPriorityFeePerGas === null || feesPerGas.maxPriorityFeePerGas === undefined) {
logAndExit(`Error estimating fees per gas`)
}
Expand Down Expand Up @@ -282,7 +279,6 @@ export const estimateUserOp = async ({

logger.debug(`Original max priority fee per gas (in Wei): ${feesPerGas.maxPriorityFeePerGas}`);
logger.debug(`Adjusted max priority fee per gas (in Wei): ${adjustedMaxPriorityFeePerGas}`);

const partialUserOpForEstimate: UserOperation<"v0.7"> = {
sender: userOp.sender,
nonce: userOp.nonce,
Expand Down Expand Up @@ -372,7 +368,6 @@ export const buildAndSignMultisigUserOp = async ({
message: partialUserOpHash,
walletConnectProjectId,
});

signatures.push({ signer: signer.address, signature, userOpSigType: isLastSigner ? "ACTUAL" : undefined });
}

Expand Down Expand Up @@ -425,7 +420,6 @@ export const buildMultiSigUserOp = async ({
...multiSigUserOp,
signature: "0x" + eoaSigs as `0x${string}`
};

logger.debug(`multiSigUserOp: ${formatUserOperation(finalUserOp)}`);
return finalUserOp;
};
Expand Down

0 comments on commit cd8e73c

Please sign in to comment.