We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f6675fa + 6501f3a commit 7d27ab1Copy full SHA for 7d27ab1
libraries/wallet/wallet.cpp
@@ -1786,7 +1786,7 @@ class wallet_api_impl
1786
{ try {
1787
account_object voting_account_object = get_account(voting_account);
1788
1789
- fc::optional<witness_object> witness_obj = _remote_db->get_witness_by_account(voting_account);
+ fc::optional<witness_object> witness_obj = _remote_db->get_witness_by_account(witness);
1790
if (!witness_obj)
1791
FC_THROW("Account ${witness} is not registered as a witness", ("witness", witness));
1792
if (approve)
0 commit comments