Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions rewards-delegated-vrf/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ cpi = ["no-entrypoint"]
no-entrypoint = []
no-idl = []
no-log-ix-name = []
idl-build = ["anchor-lang/idl-build"]
idl-build = ["anchor-spl/idl-build"]
anchor-debug = []
custom-heap = []
custom-panic = []

[dependencies]
anchor-lang = { version = "0.32.1", features = ["init-if-needed"] }
anchor-spl = { version = "0.32.1", features = ["idl-build", "metadata", "associated_token"] }
anchor-spl = { version = "0.32.1", features = ["metadata", "associated_token"] }
ephemeral-rollups-sdk = { version = "0.10.5" , features = ["anchor", "disable-realloc"] }
ephemeral-vrf-sdk = {version = "0.2.3", features = ["anchor"]}
spl-associated-token-account = { version = "7", features = ["no-entrypoint"] }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub fn execute_reward_transfer<'info>(
destination: AccountInfo<'info>,
magic_fee_vault: AccountInfo<'info>,
// Seeds for PDA signing — reward_list is now the payer so it must sign via seeds
payer_seeds: &[&[&[u8]]],
_payer_seeds: &[&[&[u8]]],
) -> Result<()> {
let token_program = transfer_lookup_table.lookup_accounts[0];
let ata_program = transfer_lookup_table.lookup_accounts[1];
Expand Down Expand Up @@ -93,7 +93,7 @@ pub fn execute_reward_transfer<'info>(
.magic_fee_vault(magic_fee_vault.to_account_info())
.commit(&[reward_list.to_account_info()])
.add_post_commit_actions([action])
.build_and_invoke_signed(payer_seeds)?;
.build_and_invoke()? // payer_seeds)?;
}
RewardType::ProgrammableNft => {
let instruction_data = anchor_lang::InstructionData::data(
Expand Down Expand Up @@ -200,7 +200,7 @@ pub fn execute_reward_transfer<'info>(
.magic_fee_vault(magic_fee_vault.to_account_info())
.commit(&[reward_list.to_account_info()])
.add_post_commit_actions([action])
.build_and_invoke_signed(payer_seeds)?;
.build_and_invoke()?; // (payer_seeds)?;
}
_ => return Err(RewardError::UnsupportedAssetType.into()),
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use anchor_lang::prelude::*;
use ephemeral_rollups_sdk::ephem::MagicIntentBundleBuilder;
use ephemeral_rollups_sdk::ephem::{FoldableIntentBuilder, MagicIntentBundleBuilder};

use crate::UndelegateRewardList;

Expand Down
Loading
Loading