Skip to content

Commit

Permalink
#1938 fix gas price for type2 txns
Browse files Browse the repository at this point in the history
  • Loading branch information
olehnikolaiev committed Jul 9, 2024
1 parent 2e40040 commit bbadcdf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions libweb3jsonrpc/JsonHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ Json::Value toJson( dev::eth::Transaction const& _t, std::pair< h256, unsigned >
res["to"] = _t.isCreation() ? Json::Value() : toJS( _t.receiveAddress() );
res["from"] = toJS( _t.safeSender() );
res["gas"] = toJS( _t.gas() );
if ( _t.txType() != dev::eth::TransactionType::Type2 )
res["gasPrice"] = toJS( _t.gasPrice() );
res["gasPrice"] = toJS( _t.gasPrice() );
res["nonce"] = toJS( _t.nonce() );
res["value"] = toJS( _t.value() );
res["blockHash"] = toJS( _location.first );
Expand Down Expand Up @@ -344,8 +343,7 @@ Json::Value toJson( dev::eth::Transaction const& _t ) {
res["to"] = _t.isCreation() ? Json::Value() : toJS( _t.to() );
res["from"] = toJS( _t.from() );
res["gas"] = toJS( _t.gas() );
if ( _t.txType() != dev::eth::TransactionType::Type2 )
res["gasPrice"] = toJS( _t.gasPrice() );
res["gasPrice"] = toJS( _t.gasPrice() );
res["value"] = toJS( _t.value() );
res["data"] = toJS( _t.data(), 32 );
res["nonce"] = toJS( _t.nonce() );
Expand Down

0 comments on commit bbadcdf

Please sign in to comment.