Skip to content

Commit 7d27ab1

Browse files
authored
Merge pull request #1155 from bitshares/oxarbitrage-patch-5
fix wrong variable name in vote_for_witness
2 parents f6675fa + 6501f3a commit 7d27ab1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/wallet/wallet.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1786,7 +1786,7 @@ class wallet_api_impl
17861786
{ try {
17871787
account_object voting_account_object = get_account(voting_account);
17881788

1789-
fc::optional<witness_object> witness_obj = _remote_db->get_witness_by_account(voting_account);
1789+
fc::optional<witness_object> witness_obj = _remote_db->get_witness_by_account(witness);
17901790
if (!witness_obj)
17911791
FC_THROW("Account ${witness} is not registered as a witness", ("witness", witness));
17921792
if (approve)

0 commit comments

Comments
 (0)