Skip to content

Commit

Permalink
feature: working on possibility of checking attestation
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Apr 30, 2024
1 parent fcaa5c3 commit 76764b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/erc20_payment_lib/src/contracts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down
2 changes: 1 addition & 1 deletion crates/erc20_payment_lib/src/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions crates/erc20_payment_lib/src/server/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -1246,7 +1246,7 @@ pub async fn check_attestation(
data: Data<Box<ServerData>>,
req: HttpRequest,
) -> actix_web::Result<web::Json<AttestationCheckResult>> {
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("");
Expand Down

0 comments on commit 76764b8

Please sign in to comment.