Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
2 changes: 1 addition & 1 deletion program/src/modify_oracles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub fn process_modify_oracles(accounts: &[AccountInfo<'_>], data: &[u8]) -> Prog

// Validate identity
if args.identity == Pubkey::default()
|| args.identity == solana_program::system_program::ID
|| args.identity == anchor_lang::system_program::ID
|| !is_on_curve(&args.identity)
{
return Err(InvalidOracleIdentity.into());
Expand Down
4 changes: 2 additions & 2 deletions sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ license = "MIT"

[features]
default = []
anchor = ["anchor-lang"]
anchor = []

[dependencies]
anchor-lang = { workspace = true, optional = true }
anchor-lang = { workspace = true }
solana-program = { workspace = true }
ephemeral-vrf-sdk-vrf-macro = { workspace = true }
borsh = { workspace = true }
2 changes: 1 addition & 1 deletion sdk/src/anchor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub struct VrfProgram;

#[cfg(feature = "anchor")]
impl anchor_lang::Id for VrfProgram {
fn id() -> ::solana_program::pubkey::Pubkey {
fn id() -> anchor_lang::prelude::Pubkey {
crate::consts::VRF_PROGRAM_ID
}
}
4 changes: 2 additions & 2 deletions sdk/src/instructions.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::consts;
use crate::types::{RequestRandomness, SerializableAccountMeta};
use ::solana_program::pubkey::Pubkey;
use anchor_lang::prelude::Pubkey;

/// Parameters for creating a request randomness instruction
#[derive(Default)]
Expand All @@ -27,7 +27,7 @@ pub fn create_request_randomness_ix(
),
solana_program::instruction::AccountMeta::new(params.oracle_queue, false),
solana_program::instruction::AccountMeta::new_readonly(
solana_program::system_program::ID,
anchor_lang::system_program::ID,
false,
),
solana_program::instruction::AccountMeta::new_readonly(
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ pub mod pda;
pub mod rnd;
pub mod types;

pub const fn id() -> ::solana_program::pubkey::Pubkey {
pub const fn id() -> anchor_lang::prelude::Pubkey {
consts::VRF_PROGRAM_ID
}
Loading