Skip to content

Commit

Permalink
lints: fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
shekohex committed Dec 24, 2024
1 parent 9de741a commit a917a4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/multi-asset-delegation/src/functions/evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ impl<T: Config> Pallet<T> {
let maybe_value = info.exit_reason.is_succeed().then_some(&info.value);
let balance = if let Some(data) = maybe_value {
let result = transfer_fn.decode_output(data).map_err(|_| Error::<T>::EVMAbiDecode)?;
let success = result.first().ok_or_else(|| Error::<T>::EVMAbiDecode)?;
let success = result.first().ok_or(Error::<T>::EVMAbiDecode)?;
if let ethabi::Token::Uint(val) = success {
*val
} else {
Expand Down

0 comments on commit a917a4c

Please sign in to comment.