diff --git a/src/premints/zora_premint/rules.rs b/src/premints/zora_premint/rules.rs index eeeee71..48a3b70 100644 --- a/src/premints/zora_premint/rules.rs +++ b/src/premints/zora_premint/rules.rs @@ -1,9 +1,10 @@ use std::str::FromStr; -use alloy_primitives::{address, Address, Signature}; +use alloy_primitives::Signature; use alloy_sol_types::SolStruct; use crate::chain::view_contract_call; +use crate::premints::zora_premint::contract::{IZoraPremintV2, PREMINT_FACTORY_ADDR}; use crate::premints::zora_premint::v2::ZoraPremintV2; use crate::rules::Evaluation::Accept; use crate::rules::{Evaluation, Rule, RuleContext}; @@ -22,7 +23,7 @@ pub async fn is_authorized_to_create_premint( Some(ref rpc) => rpc, }; - let call = ZoraPremintV2::isAuthorizedToCreatePremintCall { + let call = IZoraPremintV2::isAuthorizedToCreatePremintCall { contractAddress: premint.collection_address, signer: premint.collection.contractAdmin, premintContractConfigContractAdmin: premint.collection.contractAdmin, diff --git a/src/storage.rs b/src/storage.rs index 2150c8b..8f7d52e 100644 --- a/src/storage.rs +++ b/src/storage.rs @@ -1,15 +1,15 @@ -use crate::config::Config; -use crate::premints::zora_premint_v2::types::ZoraPremintV2; -use crate::types::{InclusionClaim, Premint, PremintName, PremintTypes}; +use std::str::FromStr; + use alloy_primitives::Address; use async_trait::async_trait; -use chrono::Utc; use eyre::WrapErr; use serde::Deserialize; use sqlx::sqlite::SqliteConnectOptions; use sqlx::Row; use sqlx::{QueryBuilder, Sqlite, SqlitePool}; -use std::str::FromStr; + +use crate::config::Config; +use crate::types::{InclusionClaim, Premint, PremintName, PremintTypes}; async fn init_db(config: &Config) -> SqlitePool { let expect_msg = @@ -322,10 +322,11 @@ fn build_query(options: &QueryOptions) -> QueryBuilder { #[cfg(test)] mod test { + use std::ops::Sub; + use alloy_primitives::Address; use chrono::{Duration, Utc}; use sqlx::Row; - use std::ops::Sub; use crate::config::Config; use crate::premints::zora_premint::v2::ZoraPremintV2;