File tree Expand file tree Collapse file tree
server/routes/transaction/blockchain Expand file tree Collapse file tree Original file line number Diff line number Diff 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 } ) ;
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments