Skip to content

Commit

Permalink
remove XAssets unused import and fix AssetRestriction in mining assets (
Browse files Browse the repository at this point in the history
  • Loading branch information
atenjin authored Jul 6, 2020
1 parent 1678d44 commit 52a6aaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion xpallets/assets/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use frame_support::{
pub use chainx_primitives::{Desc, Memo, Precision, Token};

use super::traits::ChainT;
use super::{Error, Module, Trait};
use super::{Error, Trait};

pub use self::imbalances::{NegativeImbalance, PositiveImbalance};

Expand Down
5 changes: 1 addition & 4 deletions xpallets/mining/asset/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,7 @@ pub(crate) fn btc() -> (AssetId, AssetInfo, AssetRestrictions) {
b"ChainX's cross-chain Bitcoin".to_vec(),
)
.unwrap(),
AssetRestriction::Deposit
| AssetRestriction::Withdraw
| AssetRestriction::DestroyWithdrawal
| AssetRestriction::DestroyFree,
AssetRestrictions::none(),
)
}

Expand Down

0 comments on commit 52a6aaf

Please sign in to comment.