diff --git a/libraries/plugins/peerplays_sidechain/sidechain_net_handler_ethereum.cpp b/libraries/plugins/peerplays_sidechain/sidechain_net_handler_ethereum.cpp index 86a162f4..734a5fcd 100644 --- a/libraries/plugins/peerplays_sidechain/sidechain_net_handler_ethereum.cpp +++ b/libraries/plugins/peerplays_sidechain/sidechain_net_handler_ethereum.cpp @@ -20,7 +20,7 @@ #include #include -//#define SEND_RAW_TRANSACTION 1 +#define SEND_RAW_TRANSACTION 1 namespace graphene { namespace peerplays_sidechain { @@ -642,7 +642,7 @@ std::string sidechain_net_handler_ethereum::sign_transaction(const sidechain_tra #ifdef SEND_RAW_TRANSACTION ethereum::raw_transaction raw_tr; - raw_tr.nonce = ethereum::to_hex( ethereum::from_hex( rpc_client->get_nonce( ethereum::add_0x(public_key) ) ) + 1 ); + raw_tr.nonce = ethereum::add_0x( ethereum::to_hex( ethereum::from_hex( rpc_client->get_nonce( ethereum::add_0x(public_key) ) ) ) ); raw_tr.gas_price = rpc_client->get_gas_price(); raw_tr.gas_limit = rpc_client->get_gas_limit(); raw_tr.to = wallet_contract_address;