From 08514ea9864277ce7eec8a51f81851b8037be6ff Mon Sep 17 00:00:00 2001 From: Dan Cline <6798349+Rjected@users.noreply.github.com> Date: Mon, 30 Jan 2023 14:57:03 -0500 Subject: [PATCH] fix(providers): use middleware associated err type (#2093) --- ethers-providers/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ethers-providers/src/lib.rs b/ethers-providers/src/lib.rs index d5c34da7..b505f820 100644 --- a/ethers-providers/src/lib.rs +++ b/ethers-providers/src/lib.rs @@ -513,7 +513,7 @@ pub trait Middleware: Sync + Send + Debug { &self, private_key: Bytes, passphrase: String, - ) -> Result { + ) -> Result { self.inner().import_raw_key(private_key, passphrase).await.map_err(FromErr::from) } @@ -522,7 +522,7 @@ pub trait Middleware: Sync + Send + Debug { account: T, passphrase: String, duration: Option, - ) -> Result { + ) -> Result { self.inner().unlock_account(account, passphrase, duration).await.map_err(FromErr::from) } @@ -590,7 +590,7 @@ pub trait Middleware: Sync + Send + Debug { &self, tx_hash: TxHash, trace_options: GethDebugTracingOptions, - ) -> Result { + ) -> Result { self.inner().debug_trace_transaction(tx_hash, trace_options).await.map_err(FromErr::from) } @@ -600,7 +600,7 @@ pub trait Middleware: Sync + Send + Debug { req: T, block: Option, trace_options: GethDebugTracingCallOptions, - ) -> Result { + ) -> Result { self.inner().debug_trace_call(req, block, trace_options).await.map_err(FromErr::from) }