Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sam0x17 committed Nov 15, 2024
1 parent e522268 commit 14c2ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/src/precompiles/balance_transfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl BalanceTransferPrecompile {
// Use BalanceConverter to convert EVM amount to Substrate balance
let amount_sub =
<Runtime as pallet_evm::Config>::BalanceConverter::into_substrate_balance(amount)
.ok_or_else(|| ExitError::OutOfFund)?;
.ok_or(ExitError::OutOfFund)?;

if amount_sub.is_zero() {
return Ok(PrecompileOutput {
Expand Down

0 comments on commit 14c2ce7

Please sign in to comment.