Skip to content

Commit

Permalink
Makes clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
gupnik committed Jan 3, 2025
1 parent 467f9ff commit ae2627c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rust/chains/tw_aptos/src/transaction_payload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ fn parse_argument(val: &str, abi_str: &str) -> EncodingResult<TransactionArgumen
MoveType::Address => TransactionArgument::Address(
AccountAddress::from_hex_literal(val).map_err(|_| EncodingError::InvalidInput)?,
),
MoveType::Vector { items } => parse_vector_argument(val, items)?,
MoveType::Vector { items } => parse_vector_argument(val, *items)?,
_ => {
return Err(EncodingError::InvalidInput);
},
Expand All @@ -166,10 +166,10 @@ fn parse_argument(val: &str, abi_str: &str) -> EncodingResult<TransactionArgumen

fn parse_vector_argument(
val_str: &str,
layout: Box<MoveType>,
layout: MoveType,
) -> EncodingResult<TransactionArgument> {
let val = serde_json::to_value(val_str).map_err(|_| EncodingError::InvalidInput)?;
if matches!(*layout, MoveType::U8) {
if matches!(layout, MoveType::U8) {
Ok(TransactionArgument::U8Vector(
val_str
.decode_hex()
Expand Down

0 comments on commit ae2627c

Please sign in to comment.