Skip to content

Commit

Permalink
fix feature flags
Browse files Browse the repository at this point in the history
  • Loading branch information
kstepanovdev committed Oct 30, 2024
1 parent 97c868e commit e7a6523
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion program-states/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ readme = "README.md"
crate-type = ["cdylib", "lib"]

[features]
testing = []
no-entrypoint = []
cpi = ["no-entrypoint"]

[dependencies]
anchor-lang = { workspace = true, features = ["init-if-needed"] }
Expand Down
2 changes: 0 additions & 2 deletions program-states/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ pub mod state;

// Requires by Anchor to declare accounts in crate
declare_id!("C62KFt3Ujv4GmgaNRpTzyvkERVW2jPSje7cGaw4L5hAx");

// declare_id!("AbgVx5htP4yW1XNzzwu2N7hfRd2mCLSSSZLJQihUdPow");
3 changes: 1 addition & 2 deletions programs/voter-stake-registry/src/instructions/claim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,8 @@ pub struct Claim<'info> {
/// Tokens will be transfered from Vault in Rewards account to User's user_reward_token_account.
/// This call actually doesn't mutating Staking's accounts, only Reward's accounts will be mutated.
pub fn claim(ctx: Context<Claim>, realm_pubkey: Pubkey) -> Result<u64> {
let deserialize =
let governance =
GovernanceV2::deserialize(&mut &ctx.accounts.governance.data.borrow_mut()[..])?;
let governance = deserialize;
let proposal = ProposalV2::deserialize(&mut &ctx.accounts.proposal.data.borrow_mut()[..])?;
let vote_record =
VoteRecordV2::deserialize(&mut &ctx.accounts.vote_record.data.borrow_mut()[..])?;
Expand Down

0 comments on commit e7a6523

Please sign in to comment.