Skip to content

Commit 4315592

Browse files
authored
Add logging for maxFeePerGas and maxPriorityFeePerGas (#329)
* Add logs for nonce * Send transactions sequentially * Update * Add logs for maxFeePerGas and maxPriorityFeePerGas * Update * Update
1 parent ccc5d1b commit 4315592

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/worker/tasks/processTx.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
import { ERC4337EthersSigner } from "@thirdweb-dev/wallets/dist/declarations/src/evm/connectors/smart-wallet/lib/erc4337-signer";
77
import { ethers } from "ethers";
88
import { BigNumber } from "ethers/lib/ethers";
9+
import { formatUnits } from "ethers/lib/utils";
910
import { RpcResponse } from "viem/_types/utils/rpc";
1011
import { prisma } from "../../db/client";
1112
import { getConfiguration } from "../../db/configuration/getConfiguration";
@@ -188,6 +189,21 @@ export const processTx = async () => {
188189
const nonce = startNonce.add(sentTxCount);
189190

190191
try {
192+
logger.worker.info(
193+
`maxFeePerGas ${
194+
gasOverrides.maxFeePerGas !== undefined
195+
? formatUnits(gasOverrides.maxFeePerGas, "gwei")
196+
: undefined
197+
}`,
198+
);
199+
logger.worker.info(
200+
`maxPriorityFeePerGas ${
201+
gasOverrides.maxPriorityFeePerGas !== undefined
202+
? formatUnits(gasOverrides.maxPriorityFeePerGas, "gwei")
203+
: undefined
204+
}`,
205+
);
206+
191207
const txRequest = await signer.populateTransaction({
192208
to: tx.toAddress!,
193209
from: tx.fromAddress!,

0 commit comments

Comments
 (0)