feat: validator fns no longer need to be public
If the function doesn't match a script purpose and is unused then it will till present as a warning.
This commit is contained in:
@@ -17,7 +17,7 @@ use aiken_lang::{
|
||||
builtins::{self, generic_var},
|
||||
tipo::TypeInfo,
|
||||
uplc::CodeGenerator,
|
||||
IdGenerator,
|
||||
IdGenerator, CERT, MINT, SPEND, VALIDATOR_NAMES, WITHDRAW,
|
||||
};
|
||||
use deps::UseManifest;
|
||||
use miette::NamedSource;
|
||||
@@ -44,10 +44,7 @@ use uplc::{
|
||||
use crate::{
|
||||
config::Config,
|
||||
error::{Error, Warning},
|
||||
module::{
|
||||
CheckedModule, CheckedModules, ParsedModule, ParsedModules, CERT, MINT, SPEND,
|
||||
VALIDATOR_NAMES, WITHDRAW,
|
||||
},
|
||||
module::{CheckedModule, CheckedModules, ParsedModule, ParsedModules},
|
||||
telemetry::Event,
|
||||
};
|
||||
|
||||
|
||||
@@ -207,12 +207,6 @@ fn find_cycle(
|
||||
false
|
||||
}
|
||||
|
||||
pub const SPEND: &str = "spend";
|
||||
pub const CERT: &str = "cert";
|
||||
pub const MINT: &str = "mint";
|
||||
pub const WITHDRAW: &str = "withdraw";
|
||||
pub const VALIDATOR_NAMES: [&str; 4] = [SPEND, CERT, MINT, WITHDRAW];
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct CheckedModule {
|
||||
pub name: String,
|
||||
|
||||
Reference in New Issue
Block a user