Skip to content

Commit

Permalink
v2.0: vote: remove deprecated ixs (backport of #1906) (#1917)
Browse files Browse the repository at this point in the history
vote: remove deprecated ixs (#1906)

(cherry picked from commit e42e7fd)

Co-authored-by: Ashwin Sekar <[email protected]>
  • Loading branch information
mergify[bot] and AshwinSekar authored Jun 28, 2024
1 parent 5a46b49 commit c21767a
Showing 1 changed file with 0 additions and 43 deletions.
43 changes: 0 additions & 43 deletions sdk/program/src/vote/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,49 +257,6 @@ impl<'a> Default for CreateVoteAccountConfig<'a> {
}
}

#[deprecated(
since = "1.16.0",
note = "Please use `create_account_with_config()` instead."
)]
pub fn create_account(
from_pubkey: &Pubkey,
vote_pubkey: &Pubkey,
vote_init: &VoteInit,
lamports: u64,
) -> Vec<Instruction> {
create_account_with_config(
from_pubkey,
vote_pubkey,
vote_init,
lamports,
CreateVoteAccountConfig::default(),
)
}

#[deprecated(
since = "1.16.0",
note = "Please use `create_account_with_config()` instead."
)]
pub fn create_account_with_seed(
from_pubkey: &Pubkey,
vote_pubkey: &Pubkey,
base: &Pubkey,
seed: &str,
vote_init: &VoteInit,
lamports: u64,
) -> Vec<Instruction> {
create_account_with_config(
from_pubkey,
vote_pubkey,
vote_init,
lamports,
CreateVoteAccountConfig {
with_seed: Some((base, seed)),
..CreateVoteAccountConfig::default()
},
)
}

pub fn create_account_with_config(
from_pubkey: &Pubkey,
vote_pubkey: &Pubkey,
Expand Down

0 comments on commit c21767a

Please sign in to comment.