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

Commit

Permalink
Replace hard coding system_account_name
Browse files Browse the repository at this point in the history
  • Loading branch information
UMU618 authored Nov 27, 2019
1 parent 13b3437 commit c6c74d0
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 c6c74d0

Please sign in to comment.