Skip to content

Commit 06ade95

Browse files
authored
fix: use toHexString() for gas values (#441)
1 parent a2c7f8f commit 06ade95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ export async function getTxHashReceipt(fastify: FastifyInstance) {
136136
result: receipt
137137
? {
138138
...receipt,
139-
gasUsed: receipt.gasUsed.toString(),
140-
cumulativeGasUsed: receipt.cumulativeGasUsed.toString(),
141-
effectiveGasPrice: receipt.effectiveGasPrice.toString(),
139+
gasUsed: receipt.gasUsed.toHexString(),
140+
cumulativeGasUsed: receipt.cumulativeGasUsed.toHexString(),
141+
effectiveGasPrice: receipt.effectiveGasPrice.toHexString(),
142142
}
143143
: null,
144144
});

0 commit comments

Comments
 (0)