diff --git a/ethers-etherscan/src/contract.rs b/ethers-etherscan/src/contract.rs index 45eab419..634e8469 100644 --- a/ethers-etherscan/src/contract.rs +++ b/ethers-etherscan/src/contract.rs @@ -201,7 +201,7 @@ impl Client { contract: &VerifyContract, ) -> Result> { let body = self.create_query("contract", "verifysourcecode", contract); - Ok(self.post_form(&body).await?) + self.post_form(&body).await } /// Check Source Code Verification Status with receipt received from @@ -215,7 +215,7 @@ impl Client { "checkverifystatus", HashMap::from([("guid", guid.as_ref())]), ); - Ok(self.post_form(&body).await?) + self.post_form(&body).await } /// Returns the contract ABI of a verified contract diff --git a/ethers-signers/src/aws/mod.rs b/ethers-signers/src/aws/mod.rs index abf33a70..6009dfc3 100644 --- a/ethers-signers/src/aws/mod.rs +++ b/ethers-signers/src/aws/mod.rs @@ -177,7 +177,7 @@ impl<'a> AwsSigner<'a> { where T: AsRef, { - Ok(request_get_pubkey(self.kms, key_id).await.map(utils::decode_pubkey)??) + request_get_pubkey(self.kms, key_id).await.map(utils::decode_pubkey)? } /// Fetch the pubkey associated with this signer's key ID @@ -194,7 +194,7 @@ impl<'a> AwsSigner<'a> { where T: AsRef, { - Ok(request_sign_digest(self.kms, key_id, digest).await.map(utils::decode_signature)??) + request_sign_digest(self.kms, key_id, digest).await.map(utils::decode_signature)? } /// Sign a digest with this signer's key diff --git a/ethers-signers/src/trezor/app.rs b/ethers-signers/src/trezor/app.rs index 6282aac0..d67d6b22 100644 --- a/ethers-signers/src/trezor/app.rs +++ b/ethers-signers/src/trezor/app.rs @@ -134,7 +134,7 @@ impl TrezorEthereum { /// Get the account which corresponds to our derivation path pub async fn get_address(&self) -> Result { - Ok(self.get_address_with_path(&self.derivation).await?) + self.get_address_with_path(&self.derivation).await } /// Gets the account which corresponds to the provided derivation path diff --git a/ethers-solc/src/cache.rs b/ethers-solc/src/cache.rs index 027c1587..0fa81b8b 100644 --- a/ethers-solc/src/cache.rs +++ b/ethers-solc/src/cache.rs @@ -262,7 +262,7 @@ impl SolFilesCache { pub async fn async_write(&self, path: impl AsRef) -> Result<()> { let path = path.as_ref(); let content = serde_json::to_vec_pretty(self)?; - Ok(tokio::fs::write(path, content).await.map_err(|err| SolcError::io(err, path))?) + tokio::fs::write(path, content).await.map_err(|err| SolcError::io(err, path)) } }