Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
frdomovic committed Dec 2, 2024
1 parent 0afa537 commit 9f05b8e
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions crates/context/config/src/client/protocol/icp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,24 @@ use std::borrow::Cow;
use std::collections::BTreeMap;

use ed25519_consensus::SigningKey;
use ed25519_dalek::{Signer, SigningKey as DSigningKey};
use ic_agent::agent::CallResponse;
use ic_agent::export::Principal;
use ic_agent::Agent;

use rand::rngs::OsRng;
use serde::{Deserialize, Serialize};
use thiserror::Error;
use url::Url;

use super::Protocol;
use crate::client::env::config::types::icp::{
ICApplication, ICApplicationId, ICBlobId, ICContextId, ICContextIdentity, ICPContextRequest,
ICPContextRequestKind, ICPRequest, ICPRequestKind, ICPSigned, ICSignerId,
};
use crate::client::transport::{
AssociatedTransport, Operation, ProtocolTransport, TransportRequest,
};

use crate::client::env::config::types::icp::{
ICApplication, ICApplicationId, ICBlobId, ICContextId, ICContextIdentity, ICSignerId,
ICPContextRequestKind, ICPRequest, ICPRequestKind, ICPContextRequest, ICPSigned
};
use rand::rngs::OsRng;

use ed25519_dalek::{Signer, SigningKey as DSigningKey};

#[derive(Copy, Clone, Debug)]
pub enum Icp {}

Expand Down Expand Up @@ -248,9 +245,8 @@ impl Network {
timestamp_ms: current_time,
};

let sign_req = ICPSigned::new(request, |bytes| sign_key.sign(bytes))
.expect("Failed to create signed request");

let sign_req = ICPSigned::new(request, |bytes| sign_key.sign(bytes))
.expect("Failed to create signed request");

let args_encoded = candid::encode_one(sign_req).unwrap();
self.client
Expand Down

0 comments on commit 9f05b8e

Please sign in to comment.