perf(contract): remove clone (#602)
This commit is contained in:
parent
a28476dccc
commit
a68f4ec9a7
|
@ -146,11 +146,8 @@ where
|
||||||
///
|
///
|
||||||
/// Note: this function _does not_ send a transaction from your account
|
/// Note: this function _does not_ send a transaction from your account
|
||||||
pub async fn call(&self) -> Result<D, ContractError<M>> {
|
pub async fn call(&self) -> Result<D, ContractError<M>> {
|
||||||
let bytes = self
|
let bytes =
|
||||||
.client
|
self.client.call(&self.tx, self.block).await.map_err(ContractError::MiddlewareError)?;
|
||||||
.call(&self.tx.clone(), self.block)
|
|
||||||
.await
|
|
||||||
.map_err(ContractError::MiddlewareError)?;
|
|
||||||
|
|
||||||
// decode output
|
// decode output
|
||||||
let data = decode_function_data(&self.function, &bytes, false)?;
|
let data = decode_function_data(&self.function, &bytes, false)?;
|
||||||
|
|
Loading…
Reference in New Issue