|
|
@@ -340,21 +340,21 @@ impl<'a, 'b> CreateGuardCpi<'a, 'b> {
|
|
|
}
|
|
|
}
|
|
|
#[inline(always)]
|
|
|
- pub fn invoke(&self) -> solana_program::entrypoint::ProgramResult {
|
|
|
+ pub fn invoke(&self) -> solana_program_entrypoint::ProgramResult {
|
|
|
self.invoke_signed_with_remaining_accounts(&[], &[])
|
|
|
}
|
|
|
#[inline(always)]
|
|
|
pub fn invoke_with_remaining_accounts(
|
|
|
&self,
|
|
|
remaining_accounts: &[(&'b solana_account_info::AccountInfo<'a>, bool, bool)],
|
|
|
- ) -> solana_program::entrypoint::ProgramResult {
|
|
|
+ ) -> solana_program_entrypoint::ProgramResult {
|
|
|
self.invoke_signed_with_remaining_accounts(&[], remaining_accounts)
|
|
|
}
|
|
|
#[inline(always)]
|
|
|
pub fn invoke_signed(
|
|
|
&self,
|
|
|
signers_seeds: &[&[&[u8]]],
|
|
|
- ) -> solana_program::entrypoint::ProgramResult {
|
|
|
+ ) -> solana_program_entrypoint::ProgramResult {
|
|
|
self.invoke_signed_with_remaining_accounts(signers_seeds, &[])
|
|
|
}
|
|
|
#[allow(clippy::arithmetic_side_effects)]
|
|
|
@@ -364,7 +364,7 @@ impl<'a, 'b> CreateGuardCpi<'a, 'b> {
|
|
|
&self,
|
|
|
signers_seeds: &[&[&[u8]]],
|
|
|
remaining_accounts: &[(&'b solana_account_info::AccountInfo<'a>, bool, bool)],
|
|
|
- ) -> solana_program::entrypoint::ProgramResult {
|
|
|
+ ) -> solana_program_entrypoint::ProgramResult {
|
|
|
let mut accounts = Vec::with_capacity(8 + remaining_accounts.len());
|
|
|
accounts.push(solana_instruction::AccountMeta::new(*self.guard.key, false));
|
|
|
accounts.push(solana_instruction::AccountMeta::new(*self.mint.key, true));
|
|
|
@@ -584,7 +584,7 @@ impl<'a, 'b> CreateGuardCpiBuilder<'a, 'b> {
|
|
|
self
|
|
|
}
|
|
|
#[inline(always)]
|
|
|
- pub fn invoke(&self) -> solana_program::entrypoint::ProgramResult {
|
|
|
+ pub fn invoke(&self) -> solana_program_entrypoint::ProgramResult {
|
|
|
self.invoke_signed(&[])
|
|
|
}
|
|
|
#[allow(clippy::clone_on_copy)]
|
|
|
@@ -592,7 +592,7 @@ impl<'a, 'b> CreateGuardCpiBuilder<'a, 'b> {
|
|
|
pub fn invoke_signed(
|
|
|
&self,
|
|
|
signers_seeds: &[&[&[u8]]],
|
|
|
- ) -> solana_program::entrypoint::ProgramResult {
|
|
|
+ ) -> solana_program_entrypoint::ProgramResult {
|
|
|
let args = CreateGuardInstructionArgs {
|
|
|
name: self.instruction.name.clone().expect("name is not set"),
|
|
|
symbol: self.instruction.symbol.clone().expect("symbol is not set"),
|