Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions modules/evm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,11 @@ pub mod module {
type AddressMapping: AddressMapping<Self::AccountId>;

/// Currency type for withdraw and balance storage.
type Currency: Currency<Self::AccountId, Balance = Balance>
+ NamedReservableCurrency<Self::AccountId, ReserveIdentifier = ReserveIdentifier>;
type Currency: NamedReservableCurrency<
Self::AccountId,
ReserveIdentifier = ReserveIdentifier,
Balance = Balance,
>;

/// Merge free balance from source to dest.
type TransferAll: TransferAll<Self::AccountId>;
Expand Down
9 changes: 5 additions & 4 deletions modules/transaction-payment/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,11 @@ pub mod module {
type DefaultFeeSwapPathList: Get<Vec<Vec<CurrencyId>>>;

/// The currency type in which fees will be paid.
type Currency: Currency<Self::AccountId, Balance = Balance>
+ NamedReservableCurrency<Self::AccountId, ReserveIdentifier = ReserveIdentifier>
+ Send
+ Sync;
type Currency: NamedReservableCurrency<
Self::AccountId,
ReserveIdentifier = ReserveIdentifier,
Balance = Balance,
>;

/// Currency to transfer, reserve/unreserve, lock/unlock assets
type MultiCurrency: MultiCurrency<Self::AccountId, CurrencyId = CurrencyId, Balance = Balance>;
Expand Down