Skip to content

Commit

Permalink
various cleanup fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Frederick committed Nov 20, 2023
1 parent 5f52faa commit 32cf4c4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions pallets/creditcoin/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,14 +265,12 @@ pub fn burn_and_settle<T: Config>(
let imbalance: pallet_balances::PositiveImbalance<T> =
<pallet_balances::Pallet<T>>::burn(amount);

let settlement_result = <pallet_balances::Pallet<T> as CurrencyT<T::AccountId>>::settle(
<pallet_balances::Pallet<T> as CurrencyT<T::AccountId>>::settle(
&who,
imbalance,
WithdrawReasons::TRANSFER,
AllowDeath,
);

settlement_result
)
}

pub fn can_burn_amount<T: Config>(who: T::AccountId, amount: T::Balance) -> bool {
Expand Down
2 changes: 1 addition & 1 deletion pallets/creditcoin/src/ocw/tasks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pub mod verify_transfer;
use crate::ocw::errors::VerificationResult;
use crate::types::Task;
use crate::Config;
pub use sp_runtime::offchain::storage_lock::{BlockAndTime, Lockable, StorageLock};


pub(crate) trait OffchainVerification<T: Config> {
type Output;
Expand Down
2 changes: 1 addition & 1 deletion pallets/creditcoin/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ mod collect_coins;
pub mod loan_terms;
mod transfer;

pub use cleanup::{StorageCleanupState, StorageItemCleanupState};
pub use cleanup::StorageCleanupState;
pub use collect_coins::{
CollectedCoins as CollectedCoinsStruct, CollectedCoinsId, UnverifiedCollectedCoins,
};
Expand Down

0 comments on commit 32cf4c4

Please sign in to comment.