Skip to content

Commit

Permalink
fix: use toHexString() for gas values (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
arcoraven authored Mar 5, 2024
1 parent a2c7f8f commit 06ade95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/server/routes/transaction/blockchain/getTxReceipt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ export async function getTxHashReceipt(fastify: FastifyInstance) {
result: receipt
? {
...receipt,
gasUsed: receipt.gasUsed.toString(),
cumulativeGasUsed: receipt.cumulativeGasUsed.toString(),
effectiveGasPrice: receipt.effectiveGasPrice.toString(),
gasUsed: receipt.gasUsed.toHexString(),
cumulativeGasUsed: receipt.cumulativeGasUsed.toHexString(),
effectiveGasPrice: receipt.effectiveGasPrice.toHexString(),
}
: null,
});
Expand Down

0 comments on commit 06ade95

Please sign in to comment.