Compare commits
2 Commits
bc73b51028
...
f04b2aaf88
Author | SHA1 | Date |
---|---|---|
Armani Ferrante | f04b2aaf88 | |
Armani Ferrante | 506d2395d7 |
|
@ -19,7 +19,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "anchor-attribute-access-control"
|
||||
version = "0.19.0"
|
||||
version = "0.20.1"
|
||||
dependencies = [
|
||||
"anchor-syn",
|
||||
"anyhow",
|
||||
|
@ -31,7 +31,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "anchor-attribute-account"
|
||||
version = "0.19.0"
|
||||
version = "0.20.1"
|
||||
dependencies = [
|
||||
"anchor-syn",
|
||||
"anyhow",
|
||||
|
@ -44,7 +44,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "anchor-attribute-constant"
|
||||
version = "0.19.0"
|
||||
version = "0.20.1"
|
||||
dependencies = [
|
||||
"anchor-syn",
|
||||
"proc-macro2",
|
||||
|
@ -53,7 +53,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "anchor-attribute-error"
|
||||
version = "0.19.0"
|
||||
version = "0.20.1"
|
||||
dependencies = [
|
||||
"anchor-syn",
|
||||
"proc-macro2",
|
||||
|
@ -63,7 +63,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "anchor-attribute-event"
|
||||
version = "0.19.0"
|
||||
version = "0.20.1"
|
||||
dependencies = [
|
||||
"anchor-syn",
|
||||
"anyhow",
|
||||
|
@ -74,7 +74,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "anchor-attribute-interface"
|
||||
version = "0.19.0"
|
||||
version = "0.20.1"
|
||||
dependencies = [
|
||||
"anchor-syn",
|
||||
"anyhow",
|
||||
|
@ -86,7 +86,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "anchor-attribute-program"
|
||||
version = "0.19.0"
|
||||
version = "0.20.1"
|
||||
dependencies = [
|
||||
"anchor-syn",
|
||||
"anyhow",
|
||||
|
@ -97,7 +97,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "anchor-attribute-state"
|
||||
version = "0.19.0"
|
||||
version = "0.20.1"
|
||||
dependencies = [
|
||||
"anchor-syn",
|
||||
"anyhow",
|
||||
|
@ -108,7 +108,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "anchor-derive-accounts"
|
||||
version = "0.19.0"
|
||||
version = "0.20.1"
|
||||
dependencies = [
|
||||
"anchor-syn",
|
||||
"anyhow",
|
||||
|
@ -119,7 +119,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "anchor-lang"
|
||||
version = "0.19.0"
|
||||
version = "0.20.1"
|
||||
dependencies = [
|
||||
"anchor-attribute-access-control",
|
||||
"anchor-attribute-account",
|
||||
|
@ -141,7 +141,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "anchor-spl"
|
||||
version = "0.19.0"
|
||||
version = "0.20.1"
|
||||
dependencies = [
|
||||
"anchor-lang",
|
||||
"solana-program",
|
||||
|
@ -151,7 +151,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "anchor-syn"
|
||||
version = "0.19.0"
|
||||
version = "0.20.1"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"bs58 0.3.1",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
//! A relatively advanced example of a staking program. If you're new to Anchor,
|
||||
//! it's suggested to start with the other examples.
|
||||
//!
|
||||
//!
|
||||
use anchor_lang::accounts::{
|
||||
cpi_account::CpiAccount, program_account::ProgramAccount, state::ProgramState,
|
||||
};
|
||||
|
@ -534,11 +534,13 @@ mod registry {
|
|||
let signer = &[&seeds[..]];
|
||||
let mut remaining_accounts: &[AccountInfo] = ctx.remaining_accounts;
|
||||
let cpi_program = ctx.accounts.lockup_program.clone();
|
||||
let mut bumps = std::collections::BTreeMap::new();
|
||||
let cpi_accounts = {
|
||||
let accs = CreateVesting::try_accounts(
|
||||
ctx.accounts.lockup_program.key,
|
||||
&mut remaining_accounts,
|
||||
&[],
|
||||
&mut bumps,
|
||||
)?;
|
||||
lockup::cpi::accounts::CreateVesting {
|
||||
vesting: accs.vesting.to_account_info(),
|
||||
|
|
Loading…
Reference in New Issue