Skip to content

Commit f5a269a

Browse files
authored
write empty string (#552)
1 parent d0f508a commit f5a269a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/server/routes/transaction/blockchain/getTxReceipt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export async function getTxHashReceipt(fastify: FastifyInstance) {
138138
...receipt,
139139
gasUsed: receipt.gasUsed.toHexString(),
140140
cumulativeGasUsed: receipt.cumulativeGasUsed.toHexString(),
141-
effectiveGasPrice: receipt.effectiveGasPrice.toHexString(),
141+
effectiveGasPrice: receipt.effectiveGasPrice?.toHexString(),
142142
}
143143
: null,
144144
});

src/worker/tasks/processTransactionReceiptsWorker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ const getFormattedTransactionReceipts = async ({
185185
functionName,
186186
transactionIndex: receipt.transactionIndex,
187187
gasUsed: receipt.gasUsed.toString(),
188-
effectiveGasPrice: receipt.effectiveGasPrice.toString(),
188+
effectiveGasPrice: receipt.effectiveGasPrice?.toString() ?? "",
189189
status: receipt.status === "success" ? 1 : 0,
190190
});
191191
}

src/worker/tasks/updateMinedTx.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export const updateMinedTx = async () => {
154154
onChainTxStatus: txWithReceipt.receipt.status,
155155
transactionHash: txWithReceipt.receipt.transactionHash,
156156
transactionType: txWithReceipt.receipt.type,
157-
gasPrice: txWithReceipt.receipt.effectiveGasPrice.toString(),
157+
gasPrice: txWithReceipt.receipt.effectiveGasPrice?.toString(),
158158
gasLimit: txWithReceipt.response?.gasLimit?.toString(),
159159
maxFeePerGas: txWithReceipt.response?.maxFeePerGas?.toString(),
160160
maxPriorityFeePerGas:

0 commit comments

Comments
 (0)