Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Remove pub
Browse files Browse the repository at this point in the history
  • Loading branch information
gavofyork committed Jan 20, 2023
1 parent 0ecfd06 commit 2180edd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions xcm/src/v3/multiasset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ pub enum Fungibility {
}

#[derive(Decode)]
pub enum UncheckedFungibility {
enum UncheckedFungibility {
Fungible(#[codec(compact)] u128),
NonFungible(AssetInstance),
}
Expand All @@ -256,7 +256,8 @@ impl Decode for Fungibility {
match UncheckedFungibility::decode(input)? {
UncheckedFungibility::Fungible(a) if a != 0 => Ok(Self::Fungible(a)),
UncheckedFungibility::NonFungible(i) => Ok(Self::NonFungible(i)),
UncheckedFungibility::Fungible(_) => Err("Fungible asset of zero amount is not allowed".into()),
UncheckedFungibility::Fungible(_) =>
Err("Fungible asset of zero amount is not allowed".into()),
}
}
}
Expand Down

0 comments on commit 2180edd

Please sign in to comment.