Skip to content

Commit

Permalink
use BigInt before toHex
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 committed Nov 8, 2023
1 parent 76e552d commit 792e547
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libs/remix-simulator/src/methods/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ export class Transactions {
blockHash: '0x' + txBlock.hash().toString('hex'),
blockNumber: bigIntToHex(txBlock.header.number),
from: receipt.from,
gas: toHex(receipt.gas),
gas: toHex(BigInt(receipt.gas)),
chainId: '0xd05',
// 'gasPrice': '2000000000000', // 0x123
gasPrice: '0x4a817c800', // 20000000000
Expand Down Expand Up @@ -317,7 +317,7 @@ export class Transactions {
blockHash: '0x' + txBlock.hash().toString('hex'),
blockNumber: bigIntToHex(txBlock.header.number),
from: receipt.from,
gas: toHex(receipt.gas),
gas: toHex(BigInt(receipt.gas)),
chainId: '0xd05',
// 'gasPrice': '2000000000000', // 0x123
gasPrice: '0x4a817c800', // 20000000000
Expand Down Expand Up @@ -362,7 +362,7 @@ export class Transactions {
blockHash: '0x' + txBlock.hash().toString('hex'),
blockNumber: bigIntToHex(txBlock.header.number),
from: receipt.from,
gas: toHex(receipt.gas),
gas: toHex(BigInt(receipt.gas)),
// 'gasPrice': '2000000000000', // 0x123
chainId: '0xd05',
gasPrice: '0x4a817c800', // 20000000000
Expand Down

0 comments on commit 792e547

Please sign in to comment.