mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-17 15:21:30 +02:00
update to monero-project master, use epee byte_slice in json_to_binary()
This commit is contained in:
Vendored
+1
-1
Submodule external/monero-project updated: 8fef32e45c...7435392d78
@@ -82,7 +82,9 @@ void monero_utils::validate_address(const std::string& address, monero_network_t
|
||||
void monero_utils::json_to_binary(const std::string &json, std::string &bin) {
|
||||
epee::serialization::portable_storage ps;
|
||||
ps.load_from_json(json);
|
||||
ps.store_to_binary(bin);
|
||||
epee::byte_slice bin_slice;
|
||||
ps.store_to_binary(bin_slice);
|
||||
bin.assign(reinterpret_cast<const char*>(bin_slice.data()), bin_slice.size());
|
||||
}
|
||||
|
||||
void monero_utils::binary_to_json(const std::string &bin, std::string &json) {
|
||||
|
||||
Reference in New Issue
Block a user