File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -611,7 +611,9 @@ export class EthImpl implements Eth {
611611 if ( transaction . gasPrice ) {
612612 transaction . gasPrice = parseInt ( transaction . gasPrice ) ;
613613 }
614-
614+ if ( transaction . gas ) {
615+ transaction . gas = parseInt ( transaction . gas ) ;
616+ }
615617 // Support either data or input. https://ethereum.github.io/execution-apis/api-documentation/ lists input but many EVM tools still use data.
616618 if ( transaction . input && transaction . data === undefined ) {
617619 transaction . data = transaction . input ;
Original file line number Diff line number Diff line change @@ -3782,11 +3782,13 @@ describe('Eth calls using MirrorNode', async function () {
37823782 data : '0x' ,
37833783 value : '0xA186B8E9800' ,
37843784 gasPrice : '0xF4240' ,
3785+ gas : '0xd97010' ,
37853786 } ;
37863787
37873788 ethImpl . contractCallFormat ( transaction ) ;
37883789 expect ( transaction . value ) . to . eq ( 1110 ) ;
37893790 expect ( transaction . gasPrice ) . to . eq ( 1000000 ) ;
3791+ expect ( transaction . gas ) . to . eq ( 14250000 ) ;
37903792 } ) ;
37913793
37923794 describe ( 'eth_gasPrice' , async function ( ) {
You can’t perform that action at this time.
0 commit comments