Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
smessmer committed Mar 16, 2021
1 parent c2981a1 commit 6e39d9c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/contract/deploy.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//! Contract deployment utilities

#[cfg(feature = "signing")]
use crate::{signing::Key, types::TransactionParameters};
use crate::{
api::{Eth, Namespace},
confirm,
Expand All @@ -10,6 +8,8 @@ use crate::{
types::{Address, Bytes, TransactionReceipt, TransactionRequest},
Transport,
};
#[cfg(feature = "signing")]
use crate::{signing::Key, types::TransactionParameters};
use futures::{Future, TryFutureExt};
use std::{collections::HashMap, time};

Expand Down Expand Up @@ -103,7 +103,13 @@ impl<T: Transport> Builder<T> {
/// and therefore allows deploying from an account that the
/// ethereum node doesn't need to know the private key for.
#[cfg(feature = "signing")]
pub async fn sign_with_key_and_execute<P, V, K>(self, code: V, params: P, from: K, chain_id: Option<u64>) -> Result<Contract<T>, Error>
pub async fn sign_with_key_and_execute<P, V, K>(
self,
code: V,
params: P,
from: K,
chain_id: Option<u64>,
) -> Result<Contract<T>, Error>
where
P: Tokenize,
V: AsRef<str>,
Expand Down

0 comments on commit 6e39d9c

Please sign in to comment.