diff --git a/src/utils/monero_utils.cpp b/src/utils/monero_utils.cpp index f3cb631..5badc14 100644 --- a/src/utils/monero_utils.cpp +++ b/src/utils/monero_utils.cpp @@ -66,7 +66,7 @@ void node_to_transfer(const boost::property_tree::ptree& node, shared_ptrfirst; - if (key == string("account_index")) transfer->account_index = it->second.get_value(); + if (key == string("accountIndex")) transfer->account_index = it->second.get_value(); } } @@ -77,7 +77,7 @@ shared_ptr node_to_transfer_request(const boost::proper // initialize request from node for (boost::property_tree::ptree::const_iterator it = node.begin(); it != node.end(); ++it) { string key = it->first; - if (key == string("is_incoming")) transfer_request->is_incoming = it->second.get_value(); + if (key == string("isIncoming")) transfer_request->is_incoming = it->second.get_value(); else if (key == string("address")) transfer_request->address = it->second.data(); else if (key == string("addresses")) throw runtime_error("addresses not implemented"); else if (key == string("subadressIndex")) transfer_request->subaddress_index = it->second.get_value(); @@ -112,7 +112,7 @@ void node_to_output(const boost::property_tree::ptree& node, shared_ptrfirst; - if (key == string("key_image")) output->key_image = node_to_key_image(it->second); + if (key == string("keyImage")) output->key_image = node_to_key_image(it->second); else if (key == string("amount")) output->amount = it->second.get_value(); else if (key == string("index")) output->index = it->second.get_value(); else if (key == string("ringOutputIndices")) throw runtime_error("node_to_tx() deserialize ringOutputIndices not implemented");