Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Replace hard coding system_account_name #8254

Merged
merged 1 commit into from
Nov 27, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion programs/cleos/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1539,7 +1539,9 @@ struct bidname_info_subcommand {
list_producers->add_option("newname", newname, localized("The bidding name"))->required();
list_producers->set_callback([this] {
auto rawResult = call(get_table_func, fc::mutable_variant_object("json", true)
("code", "eosio")("scope", "eosio")("table", "namebids")
("code", name(config::system_account_name).to_string())
("scope", name(config::system_account_name).to_string())
("table", "namebids")
("lower_bound", name(newname).to_uint64_t())
("upper_bound", name(newname).to_uint64_t() + 1)
// Less than ideal upper_bound usage preserved so cleos can still work with old buggy nodeos versions
Expand Down