Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ChewingGlass committed Jan 6, 2025
1 parent ad9bc98 commit 5b6279e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions programs/voter-stake-registry/src/instructions/withdraw_v0.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
use crate::error::*;
use crate::position_seeds;
use crate::state::*;
use anchor_lang::prelude::*;
use anchor_spl::{
associated_token::AssociatedToken,
token::{transfer, Mint, Token, TokenAccount, Transfer},
};

use crate::{error::*, position_seeds, state::*};

#[derive(AnchorSerialize, AnchorDeserialize, Clone, Default)]
pub struct WithdrawArgsV0 {
pub amount: u64,
Expand All @@ -33,8 +32,8 @@ pub struct WithdrawV0<'info> {
#[account(
init_if_needed,
payer = position_authority,
token::mint = mint,
token::authority = position_authority,
associated_token::mint = mint,
associated_token::authority = position_authority,
constraint = position_token_account.amount > 0
)]
pub position_token_account: Box<Account<'info, TokenAccount>>,
Expand Down

0 comments on commit 5b6279e

Please sign in to comment.