Skip to content

Commit

Permalink
Update from bkontur running command 'fmt'
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 8, 2024
1 parent 644e951 commit 21baa7f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bridges/modules/xcm-bridge-hub/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -672,9 +672,12 @@ pub mod pallet {
bridge_destination_universal_location.into(),
)?;

if !T::AllowWithoutBridgeDeposit::contains(locations.bridge_origin_relative_location()) {
let account_id = T::BridgeOriginAccountIdConverter::convert_location(locations.bridge_origin_relative_location())
.ok_or(Error::<T, I>::InvalidBridgeOriginAccount)?;
if !T::AllowWithoutBridgeDeposit::contains(locations.bridge_origin_relative_location())
{
let account_id = T::BridgeOriginAccountIdConverter::convert_location(
locations.bridge_origin_relative_location(),
)
.ok_or(Error::<T, I>::InvalidBridgeOriginAccount)?;
fund_account(account_id, T::BridgeDeposit::get());
}

Expand Down

0 comments on commit 21baa7f

Please sign in to comment.