From 18c5f04a739085f9640675cf124244eca6ac5c72 Mon Sep 17 00:00:00 2001 From: DmytroNazarenko Date: Mon, 18 Mar 2024 21:32:58 +0000 Subject: [PATCH] #1825 Fix linter --- libweb3jsonrpc/JsonHelper.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libweb3jsonrpc/JsonHelper.cpp b/libweb3jsonrpc/JsonHelper.cpp index 271bddbe2..180ed51d0 100644 --- a/libweb3jsonrpc/JsonHelper.cpp +++ b/libweb3jsonrpc/JsonHelper.cpp @@ -478,10 +478,10 @@ TransactionSkeleton toTransactionSkeleton( Json::Value const& _json ) { if ( !_json["gasPrice"].empty() ) ret.gasPrice = jsToU256( _json["gasPrice"].asString() ); - if ( !_json["data"].empty() ) + if ( !_json["data"].empty() ) ret.data = jsToBytes( _json["data"].asString(), OnFailed::Throw ); - if ( !_json["input"].empty() ) + if ( !_json["input"].empty() ) ret.data = jsToBytes( _json["input"].asString(), OnFailed::Throw ); if ( !_json["code"].empty() ) @@ -534,13 +534,13 @@ TransactionSkeleton rapidJsonToTransactionSkeleton( rapidjson::Value const& _jso ret.gasPrice = jsToU256( _json["gasPrice"].GetString() ); } - if ( _json.HasMember( "data" ) ) { + if ( _json.HasMember( "data" ) ) { if ( !_json["data"].IsString() ) throw jsonrpc::JsonRpcException( jsonrpc::Errors::ERROR_RPC_INVALID_PARAMS ); ret.data = jsToBytes( _json["data"].GetString(), OnFailed::Throw ); } - if ( _json.HasMember( "input" ) ) { + if ( _json.HasMember( "input" ) ) { if ( !_json["input"].IsString() ) throw jsonrpc::JsonRpcException( jsonrpc::Errors::ERROR_RPC_INVALID_PARAMS ); ret.data = jsToBytes( _json["input"].GetString(), OnFailed::Throw );