Skip to content

Commit

Permalink
chore: remove unnecessary to_vec (#6983)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes authored Feb 1, 2024
1 parent ceb739a commit 505ff79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/evm/evm/src/executors/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ impl Executor {
abi: Option<&JsonAbi>,
) -> Result<CallResult, EvmError> {
let func = func.into();
let calldata = Bytes::from(func.abi_encode_input(&args.into())?.to_vec());
let calldata = Bytes::from(func.abi_encode_input(&args.into())?);
let result = self.call_raw_committing(from, to, calldata, value)?;
convert_call_result(abi, &func, result)
}
Expand Down

0 comments on commit 505ff79

Please sign in to comment.