File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
server/routes/transaction/blockchain Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ export async function getTxHashReceipt(fastify: FastifyInstance) {
138
138
...receipt ,
139
139
gasUsed : receipt . gasUsed . toHexString ( ) ,
140
140
cumulativeGasUsed : receipt . cumulativeGasUsed . toHexString ( ) ,
141
- effectiveGasPrice : receipt . effectiveGasPrice . toHexString ( ) ,
141
+ effectiveGasPrice : receipt . effectiveGasPrice ? .toHexString ( ) ,
142
142
}
143
143
: null ,
144
144
} ) ;
Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ const getFormattedTransactionReceipts = async ({
185
185
functionName,
186
186
transactionIndex : receipt . transactionIndex ,
187
187
gasUsed : receipt . gasUsed . toString ( ) ,
188
- effectiveGasPrice : receipt . effectiveGasPrice . toString ( ) ,
188
+ effectiveGasPrice : receipt . effectiveGasPrice ? .toString ( ) ?? "" ,
189
189
status : receipt . status === "success" ? 1 : 0 ,
190
190
} ) ;
191
191
}
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ export const updateMinedTx = async () => {
154
154
onChainTxStatus : txWithReceipt . receipt . status ,
155
155
transactionHash : txWithReceipt . receipt . transactionHash ,
156
156
transactionType : txWithReceipt . receipt . type ,
157
- gasPrice : txWithReceipt . receipt . effectiveGasPrice . toString ( ) ,
157
+ gasPrice : txWithReceipt . receipt . effectiveGasPrice ? .toString ( ) ,
158
158
gasLimit : txWithReceipt . response ?. gasLimit ?. toString ( ) ,
159
159
maxFeePerGas : txWithReceipt . response ?. maxFeePerGas ?. toString ( ) ,
160
160
maxPriorityFeePerGas :
You can’t perform that action at this time.
0 commit comments