Skip to content

Commit 2273e86

Browse files
yann300Aniket-Engg
authored andcommitted
use BigInt before toHex
1 parent eceda79 commit 2273e86

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libs/remix-simulator/src/methods/transactions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ export class Transactions {
268268
blockHash: '0x' + txBlock.hash().toString('hex'),
269269
blockNumber: bigIntToHex(txBlock.header.number),
270270
from: receipt.from,
271-
gas: toHex(receipt.gas),
271+
gas: toHex(BigInt(receipt.gas)),
272272
chainId: '0xd05',
273273
// 'gasPrice': '2000000000000', // 0x123
274274
gasPrice: '0x4a817c800', // 20000000000
@@ -317,7 +317,7 @@ export class Transactions {
317317
blockHash: '0x' + txBlock.hash().toString('hex'),
318318
blockNumber: bigIntToHex(txBlock.header.number),
319319
from: receipt.from,
320-
gas: toHex(receipt.gas),
320+
gas: toHex(BigInt(receipt.gas)),
321321
chainId: '0xd05',
322322
// 'gasPrice': '2000000000000', // 0x123
323323
gasPrice: '0x4a817c800', // 20000000000
@@ -362,7 +362,7 @@ export class Transactions {
362362
blockHash: '0x' + txBlock.hash().toString('hex'),
363363
blockNumber: bigIntToHex(txBlock.header.number),
364364
from: receipt.from,
365-
gas: toHex(receipt.gas),
365+
gas: toHex(BigInt(receipt.gas)),
366366
// 'gasPrice': '2000000000000', // 0x123
367367
chainId: '0xd05',
368368
gasPrice: '0x4a817c800', // 20000000000

0 commit comments

Comments
 (0)