Same fix, different location

What's this doing way up here?
This commit is contained in:
Greg Fitzgerald 2019-03-05 12:21:38 -07:00
parent 52fc974cdf
commit 8e70f5bf84
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ fn create_and_fund_vote_account(
let vote_account_user_data = client.get_account_userdata(&vote_account);
if let Ok(Some(vote_account_user_data)) = vote_account_user_data {
if let Ok(vote_state) = VoteState::deserialize(&vote_account_user_data) {
if vote_state.delegate_id == pubkey {
if vote_state.delegate_id == vote_account {
return Ok(());
}
}