Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
perf(contract): remove clone (#602)
Browse files Browse the repository at this point in the history
  • Loading branch information
univerz authored Nov 21, 2021
1 parent a28476d commit a68f4ec
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ethers-contract/src/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,8 @@ where
///
/// Note: this function _does not_ send a transaction from your account
pub async fn call(&self) -> Result<D, ContractError<M>> {
let bytes = self
.client
.call(&self.tx.clone(), self.block)
.await
.map_err(ContractError::MiddlewareError)?;
let bytes =
self.client.call(&self.tx, self.block).await.map_err(ContractError::MiddlewareError)?;

// decode output
let data = decode_function_data(&self.function, &bytes, false)?;
Expand Down

0 comments on commit a68f4ec

Please sign in to comment.