We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e522268 commit 14c2ce7Copy full SHA for 14c2ce7
runtime/src/precompiles/balance_transfer.rs
@@ -28,7 +28,7 @@ impl BalanceTransferPrecompile {
28
// Use BalanceConverter to convert EVM amount to Substrate balance
29
let amount_sub =
30
<Runtime as pallet_evm::Config>::BalanceConverter::into_substrate_balance(amount)
31
- .ok_or_else(|| ExitError::OutOfFund)?;
+ .ok_or(ExitError::OutOfFund)?;
32
33
if amount_sub.is_zero() {
34
return Ok(PrecompileOutput {
0 commit comments