Skip to content

Commit

Permalink
Merge pull request #1939 from skalenetwork/bug/1938-blockexplorer-typ…
Browse files Browse the repository at this point in the history
…e2-txns

#1938 fix gas price for type2 txns
  • Loading branch information
DmytroNazarenko authored Jul 9, 2024
2 parents 2e40040 + bbadcdf commit 951f7fa
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 951f7fa

Please sign in to comment.