Skip to content

Commit

Permalink
Make test independent of ExistentialDeposit definition
Browse files Browse the repository at this point in the history
  • Loading branch information
maltekliemann committed Dec 3, 2024
1 parent 2defbce commit 29f16e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions runtime/common/src/fees.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,15 +201,15 @@ macro_rules! impl_foreign_fees {
if can_withdraw != WithdrawConsequence::Success {
return Err(InvalidTransaction::Payment.into());
}
<Tokens as Balanced<AccountId>>::withdraw(
let result = <Tokens as Balanced<AccountId>>::withdraw(
currency_id,
who,
converted_fee,
Precision::Exact,
Preservation::Expendable,
Fortitude::Force,
)
.map_err(|_| TransactionValidityError::from(InvalidTransaction::Payment))
);
result.map_err(|_| TransactionValidityError::from(InvalidTransaction::Payment))
}

fn correct_and_deposit_fee(
Expand Down Expand Up @@ -603,7 +603,7 @@ macro_rules! fee_tests {
decimals: 10,
name: "Polkadot".as_bytes().to_vec().try_into().unwrap(),
symbol: "DOT".as_bytes().to_vec().try_into().unwrap(),
existential_deposit: ExistentialDeposit::get(),
existential_deposit: 5 * MILLIS,
location: Some(xcm::VersionedMultiLocation::V3(
xcm::latest::MultiLocation::parent(),
)),
Expand Down

0 comments on commit 29f16e4

Please sign in to comment.