Skip to content

Commit

Permalink
remove usage of program_id_from_env
Browse files Browse the repository at this point in the history
  • Loading branch information
nazreen committed Jan 3, 2025
1 parent d076968 commit 9f414c0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions examples/oft-solana/programs/oft/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,9 @@ use oapp::{
endpoint::{MessagingFee, MessagingReceipt},
LzReceiveParams,
};
use solana_helper::program_id_from_env;
use state::*;

declare_id!(Pubkey::new_from_array(program_id_from_env!(
"OFT_ID",
"9UovNrJD8pQyBLheeHNayuG1wJSEAoxkmM14vw5gcsTT"
)));
declare_id!("9UovNrJD8pQyBLheeHNayuG1wJSEAoxkmM14vw5gcsTT");

pub const OFT_SEED: &[u8] = b"OFT";
pub const PEER_SEED: &[u8] = b"Peer";
Expand Down

0 comments on commit 9f414c0

Please sign in to comment.