Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
armaniferrante committed Oct 20, 2021
1 parent 1a18a98 commit ecc5bce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spl/src/governance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ macro_rules! vote_weight_record {
let vwr: spl_governance::addins::voter_weight::VoterWeightRecord =
anchor_lang::AnchorDeserialize::deserialize(&mut data)
.map_err(|_| anchor_lang::__private::ErrorCode::AccountDidNotDeserialize)?;
if vwr.account_type != spl-governance::addins::voter_weight::VoterWeightAccountType::VoterWeightRecord {
if vwr.account_type != spl_governance::addins::voter_weight::VoterWeightAccountType::VoterWeightRecord {
return Err(anchor_lang::__private::ErrorCode::AccountDidNotSerialize.into());
}
Ok(VoterWeightRecord(vwr))
Expand All @@ -25,7 +25,7 @@ macro_rules! vote_weight_record {
let vwr: spl_governance::addins::voter_weight::VoterWeightRecord =
anchor_lang::AnchorDeserialize::deserialize(&mut data)
.map_err(|_| anchor_lang::__private::ErrorCode::AccountDidNotDeserialize)?;
if vwr.account_type != spl-governance::addins::voter_weight::VoterWeightAccountType::Uninitialized {
if vwr.account_type != spl_governance::addins::voter_weight::VoterWeightAccountType::Uninitialized {
return Err(anchor_lang::__private::ErrorCode::AccountDidNotSerialize.into());
}
Ok(VoterWeightRecord(vwr))
Expand All @@ -37,7 +37,7 @@ macro_rules! vote_weight_record {
&self,
writer: &mut W,
) -> std::result::Result<(), ProgramError> {
AnchorSerialize::serialize(&self.0, writer)
anchor_lang::AnchorSerialize::serialize(&self.0, writer)
.map_err(|_| anchor_lang::__private::ErrorCode::AccountDidNotSerialize)?;
Ok(())
}
Expand Down

0 comments on commit ecc5bce

Please sign in to comment.