Skip to content

Commit

Permalink
remove unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
blasrodri committed May 18, 2023
1 parent 4eb07a5 commit e11ea8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/parachain/runtime/composable/src/ibc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ impl Ics20RateLimiter for ConstantAny {
<<Runtime as pallet_ibc::Config>::IbcDenomToAssetIdConversion as DenomToAssetId<
Runtime,
>>::from_denom_to_asset_id(&token.denom.to_string())
.unwrap();
.map_err(|_| ())?;

let decimals =
<assets_registry::Pallet<Runtime> as InspectRegistryMetadata>::decimals(&asset_id)
Expand Down
2 changes: 1 addition & 1 deletion code/parachain/runtime/picasso/src/ibc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ impl Ics20RateLimiter for ConstantAny {
<<Runtime as pallet_ibc::Config>::IbcDenomToAssetIdConversion as DenomToAssetId<
Runtime,
>>::from_denom_to_asset_id(&token.denom.to_string())
.unwrap();
.map_err(|_| ())?;

let decimals =
<assets_registry::Pallet<Runtime> as InspectRegistryMetadata>::decimals(&asset_id)
Expand Down

0 comments on commit e11ea8b

Please sign in to comment.