Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Charles Ferrell <[email protected]>
  • Loading branch information
ferrell-code committed Jul 15, 2023
1 parent a8f3883 commit 65cc718
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions pallets/asset-manager/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -765,9 +765,9 @@ fn permissionless_register_asset_works() {
assert_eq!(Balances::free_balance(&ALICE), amount - registry_cost);

let metadata = AssetIdMetadata::<Runtime>::get(asset_id).unwrap();
assert_eq!(metadata.is_sufficient, true);
assert!(metadata.is_sufficient);
assert_eq!(metadata.min_balance, 100_000);
assert_eq!(metadata.metadata.is_frozen, false);
assert!(!metadata.metadata.is_frozen);
assert_eq!(metadata.metadata.decimals, 12);
assert_eq!(metadata.metadata.name, "dog token".as_bytes().to_vec());
assert_eq!(metadata.metadata.symbol, "dog".as_bytes().to_vec());
Expand Down
10 changes: 5 additions & 5 deletions pallets/farming/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ benchmarks! {
let _ = <T::AssetConfig as AssetConfig<T>>::FungibleLedger::deposit_minting(
8.into(),
&caller,
INITIAL_VALUE.try_into().unwrap(),
INITIAL_VALUE,
);
// assert_ok!(Farming::<T>::charge(RawOrigin::Signed(caller.clone()).into(), 0, charge_rewards));
}: _(RawOrigin::Signed(caller.clone()), 0, charge_rewards)
Expand Down Expand Up @@ -110,7 +110,7 @@ benchmarks! {
let _ = <T::AssetConfig as AssetConfig<T>>::FungibleLedger::deposit_minting(
8.into(),
&caller,
INITIAL_VALUE.try_into().unwrap(),
INITIAL_VALUE,
);
assert_ok!(Farming::<T>::charge(RawOrigin::Signed(caller.clone()).into(), 0, charge_rewards));
}: _(RawOrigin::Signed(caller.clone()), 0, token_amount, None)
Expand Down Expand Up @@ -141,7 +141,7 @@ benchmarks! {
let _ = <T::AssetConfig as AssetConfig<T>>::FungibleLedger::deposit_minting(
8.into(),
&caller,
INITIAL_VALUE.try_into().unwrap(),
INITIAL_VALUE,
);
let charge_rewards = vec![(ksm_asset_id,BalanceOf::<T>::unique_saturated_from(300000u128))];
assert_ok!(Farming::<T>::charge(RawOrigin::Signed(caller.clone()).into(), 0, charge_rewards));
Expand Down Expand Up @@ -174,7 +174,7 @@ benchmarks! {
let _ = <T::AssetConfig as AssetConfig<T>>::FungibleLedger::deposit_minting(
8.into(),
&caller,
INITIAL_VALUE.try_into().unwrap(),
INITIAL_VALUE,
);
let charge_rewards = vec![(ksm_asset_id,BalanceOf::<T>::unique_saturated_from(300000u128))];
assert_ok!(Farming::<T>::charge(RawOrigin::Signed(caller.clone()).into(), 0, charge_rewards));
Expand Down Expand Up @@ -209,7 +209,7 @@ benchmarks! {
let _ = <T::AssetConfig as AssetConfig<T>>::FungibleLedger::deposit_minting(
8.into(),
&caller,
INITIAL_VALUE.try_into().unwrap(),
INITIAL_VALUE,
);
let charge_rewards = vec![(ksm_asset_id,BalanceOf::<T>::unique_saturated_from(300000u128))];
assert_ok!(Farming::<T>::charge(RawOrigin::Signed(caller.clone()).into(), 0, charge_rewards));
Expand Down

0 comments on commit 65cc718

Please sign in to comment.