Skip to content

Commit

Permalink
Post rebase fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ligustah committed Apr 26, 2024
1 parent 3fccd41 commit 09d5425
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
5 changes: 3 additions & 2 deletions src/premints/zora_premint/rules.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand All @@ -22,7 +23,7 @@ pub async fn is_authorized_to_create_premint<T: Reader, P>(
Some(ref rpc) => rpc,
};

let call = ZoraPremintV2::isAuthorizedToCreatePremintCall {
let call = IZoraPremintV2::isAuthorizedToCreatePremintCall {
contractAddress: premint.collection_address,
signer: premint.collection.contractAdmin,
premintContractConfigContractAdmin: premint.collection.contractAdmin,
Expand Down
13 changes: 7 additions & 6 deletions src/storage.rs
Original file line number Diff line number Diff line change
@@ -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 =
Expand Down Expand Up @@ -322,10 +322,11 @@ fn build_query(options: &QueryOptions) -> QueryBuilder<Sqlite> {

#[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;
Expand Down

0 comments on commit 09d5425

Please sign in to comment.