diff --git a/crates/erc20_payment_lib/src/contracts.rs b/crates/erc20_payment_lib/src/contracts.rs index 7290233c..ae7e9658 100644 --- a/crates/erc20_payment_lib/src/contracts.rs +++ b/crates/erc20_payment_lib/src/contracts.rs @@ -5,7 +5,7 @@ use crate::error::PaymentError; use std::str::FromStr; use web3::contract::tokens::Tokenize; use web3::contract::Contract; -use web3::ethabi::{FixedBytes, Hash}; + use web3::transports::Http; use web3::types::{Address, H256, U256}; use web3::{ethabi, Transport, Web3}; diff --git a/crates/erc20_payment_lib/src/eth.rs b/crates/erc20_payment_lib/src/eth.rs index a040ea21..bcc5416b 100644 --- a/crates/erc20_payment_lib/src/eth.rs +++ b/crates/erc20_payment_lib/src/eth.rs @@ -10,7 +10,7 @@ use erc20_payment_lib_common::utils::{ }; use erc20_rpc_pool::Web3RpcPool; use secp256k1::{PublicKey, SecretKey}; -use serde::{Deserialize, Serialize}; +use serde::{Serialize}; use sha3::Digest; use sha3::Keccak256; use std::sync::Arc; diff --git a/crates/erc20_payment_lib/src/server/web.rs b/crates/erc20_payment_lib/src/server/web.rs index 0381d4c3..1ea5fddd 100644 --- a/crates/erc20_payment_lib/src/server/web.rs +++ b/crates/erc20_payment_lib/src/server/web.rs @@ -16,7 +16,7 @@ use chrono::{DateTime, Utc}; use erc20_payment_lib_common::model::DepositId; use erc20_payment_lib_common::ops::*; use erc20_payment_lib_common::utils::datetime_from_u256_timestamp; -use erc20_payment_lib_common::{err_custom_create, export_metrics_to_prometheus, FaucetData}; +use erc20_payment_lib_common::{export_metrics_to_prometheus, FaucetData}; use erc20_rpc_pool::VerifyEndpointResult; use serde::{Deserialize, Serialize}; use serde_json::json; @@ -1246,7 +1246,7 @@ pub async fn check_attestation( data: Data>, req: HttpRequest, ) -> actix_web::Result> { - let my_data = data.shared_state.lock().unwrap(); + let _my_data = data.shared_state.lock().unwrap(); let attestation_uid = req.match_info().get("uid").unwrap_or(""); let chain_name = req.match_info().get("chain").unwrap_or("");