mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-07 15:53:14 +00:00
clippy
This commit is contained in:
parent
a432019b23
commit
e2d596be20
@ -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 {
|
impl Program {
|
||||||
pub fn pinata() -> Self {
|
pub fn pinata() -> Self {
|
||||||
Self {
|
Self {
|
||||||
|
|||||||
@ -8,7 +8,6 @@ use nssa_core::{
|
|||||||
account::Account,
|
account::Account,
|
||||||
program::{DEFAULT_PROGRAM_ID, ProgramId},
|
program::{DEFAULT_PROGRAM_ID, ProgramId},
|
||||||
};
|
};
|
||||||
use rand::{Rng, RngCore, rngs::OsRng};
|
|
||||||
use std::collections::{HashMap, HashSet};
|
use std::collections::{HashMap, HashSet};
|
||||||
|
|
||||||
pub(crate) struct CommitmentSet {
|
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 {
|
impl V01State {
|
||||||
pub fn add_pinata_program(&mut self, address: Address) {
|
pub fn add_pinata_program(&mut self, address: Address) {
|
||||||
self.insert_program(Program::pinata());
|
self.insert_program(Program::pinata());
|
||||||
|
|||||||
@ -210,7 +210,7 @@ pub enum Command {
|
|||||||
addr: String,
|
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
|
// Claim piñata prize
|
||||||
ClaimPinata {
|
ClaimPinata {
|
||||||
///pinata_addr - valid 32 byte hex string
|
///pinata_addr - valid 32 byte hex string
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user