compilation fix for mapping name_hash

error: 'const class nlohmann::basic_json<>' has no member named 'name_hash'

 7199 |                 mapping.name_hash};

resolved this error by replacing  mapping.name_hash with  mapping["name_hash"]
This commit is contained in:
saravanan 2023-09-07 11:28:09 +05:30 committed by GitHub
parent 9a2b161dd7
commit baecf82a3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -7196,7 +7196,7 @@ bool simple_wallet::ons_lookup(std::vector<std::string> args) {
tools::wallet2::ons_detail detail = {
static_cast<ons::mapping_type>(mapping["type"]),
name,
mapping.name_hash};
mapping["name_hash"]};
m_wallet->set_ons_cache_record(detail);
}
for (size_t i = last_index + 1; i < args.size(); i++)