This commit is contained in:
Sergio Chouhy 2025-09-05 23:45:44 -03:00
parent a432019b23
commit e2d596be20
3 changed files with 3 additions and 4 deletions

View File

@ -77,7 +77,7 @@ impl Program {
}
}
// TODO: This is for testnet only, consider refactoring to have this not compiled for mainnet
// TODO: Testnet only. Refactor to prevent compilation on mainnet.
impl Program {
pub fn pinata() -> Self {
Self {

View File

@ -8,7 +8,6 @@ use nssa_core::{
account::Account,
program::{DEFAULT_PROGRAM_ID, ProgramId},
};
use rand::{Rng, RngCore, rngs::OsRng};
use std::collections::{HashMap, HashSet};
pub(crate) struct CommitmentSet {
@ -207,7 +206,7 @@ impl V01State {
}
}
// TODO: This is for testnet only, consider refactoring to have this not compiled for mainnet
// TODO: Testnet only. Refactor to prevent compilation on mainnet.
impl V01State {
pub fn add_pinata_program(&mut self, address: Address) {
self.insert_program(Program::pinata());

View File

@ -210,7 +210,7 @@ pub enum Command {
addr: String,
},
// TODO: This is for testnet only, consider refactoring to have this not compiled for mainnet
// TODO: Testnet only. Refactor to prevent compilation on mainnet.
// Claim piñata prize
ClaimPinata {
///pinata_addr - valid 32 byte hex string