Skip to content

Commit

Permalink
chore: fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
shekohex committed Jan 9, 2025
1 parent 2cb0202 commit d4c09fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion precompiles/multi-asset-delegation/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ where
});

for (token, amount) in erc20_transfers {
let v: U256 = amount.try_into().map_err(|_| revert("Invalid amount"))?;
let v: U256 = amount.into();
if !erc20_transfer(handle, token.into(), pallet_address.into(), caller.into(), v)? {
return Err(revert("Failed to transfer ERC20 tokens"));
}
Expand Down

0 comments on commit d4c09fb

Please sign in to comment.