From d7032aeb430b8ab724f0cbff0e6d2784a7e0a81d Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Mon, 10 Dec 2018 12:26:44 -0800 Subject: [PATCH] Add vote instruction debug log --- programs/native/vote/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/programs/native/vote/src/lib.rs b/programs/native/vote/src/lib.rs index 7e726279ed..efaaddf337 100644 --- a/programs/native/vote/src/lib.rs +++ b/programs/native/vote/src/lib.rs @@ -61,6 +61,7 @@ fn entrypoint( error!("account[0] is not assigned to the VOTE_PROGRAM"); Err(ProgramError::InvalidArgument)?; } + debug!("{:?} by {}", vote, keyed_accounts[0].signer_key().unwrap()); let mut vote_state = VoteProgram::deserialize(&keyed_accounts[0].account.userdata)?;