Fix get_nonce
This commit is contained in:
parent
b43d5b4224
commit
f780fa794f
1 changed files with 2 additions and 2 deletions
|
|
@ -20,7 +20,7 @@
|
||||||
#include <graphene/peerplays_sidechain/ethereum/transaction.hpp>
|
#include <graphene/peerplays_sidechain/ethereum/transaction.hpp>
|
||||||
#include <graphene/peerplays_sidechain/ethereum/utils.hpp>
|
#include <graphene/peerplays_sidechain/ethereum/utils.hpp>
|
||||||
|
|
||||||
//#define SEND_RAW_TRANSACTION 1
|
#define SEND_RAW_TRANSACTION 1
|
||||||
|
|
||||||
namespace graphene { namespace peerplays_sidechain {
|
namespace graphene { namespace peerplays_sidechain {
|
||||||
|
|
||||||
|
|
@ -642,7 +642,7 @@ std::string sidechain_net_handler_ethereum::sign_transaction(const sidechain_tra
|
||||||
|
|
||||||
#ifdef SEND_RAW_TRANSACTION
|
#ifdef SEND_RAW_TRANSACTION
|
||||||
ethereum::raw_transaction raw_tr;
|
ethereum::raw_transaction raw_tr;
|
||||||
raw_tr.nonce = ethereum::to_hex( ethereum::from_hex<boost::multiprecision::uint256_t>( rpc_client->get_nonce( ethereum::add_0x(public_key) ) ) + 1 );
|
raw_tr.nonce = ethereum::add_0x( ethereum::to_hex( ethereum::from_hex<boost::multiprecision::uint256_t>( rpc_client->get_nonce( ethereum::add_0x(public_key) ) ) ) );
|
||||||
raw_tr.gas_price = rpc_client->get_gas_price();
|
raw_tr.gas_price = rpc_client->get_gas_price();
|
||||||
raw_tr.gas_limit = rpc_client->get_gas_limit();
|
raw_tr.gas_limit = rpc_client->get_gas_limit();
|
||||||
raw_tr.to = wallet_contract_address;
|
raw_tr.to = wallet_contract_address;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue