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

Commit

Permalink
Merge pull request #8254 from UMU618/develop
Browse files Browse the repository at this point in the history
Replace hard coding system_account_name
  • Loading branch information
heifner authored Nov 27, 2019
2 parents 13b3437 + c6c74d0 commit 15e17c3
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit 15e17c3

Please sign in to comment.