mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-24 07:51:07 +00:00
AccountTouch: deposit_required requires asset id (#14147)
This commit is contained in:
@@ -1654,7 +1654,7 @@ pub mod pallet {
|
|||||||
impl<T: Config<I>, I: 'static> AccountTouch<T::AssetId, T::AccountId> for Pallet<T, I> {
|
impl<T: Config<I>, I: 'static> AccountTouch<T::AssetId, T::AccountId> for Pallet<T, I> {
|
||||||
type Balance = DepositBalanceOf<T, I>;
|
type Balance = DepositBalanceOf<T, I>;
|
||||||
|
|
||||||
fn deposit_required() -> Self::Balance {
|
fn deposit_required(_: T::AssetId) -> Self::Balance {
|
||||||
T::AssetAccountDeposit::get()
|
T::AssetAccountDeposit::get()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1160,8 +1160,8 @@ pub trait AccountTouch<AssetId, AccountId> {
|
|||||||
/// The type for currency units of the deposit.
|
/// The type for currency units of the deposit.
|
||||||
type Balance;
|
type Balance;
|
||||||
|
|
||||||
/// The deposit amount of a native currency required for creating an asset account.
|
/// The deposit amount of a native currency required for creating an account of the `asset`.
|
||||||
fn deposit_required() -> Self::Balance;
|
fn deposit_required(asset: AssetId) -> Self::Balance;
|
||||||
|
|
||||||
/// Create an account for `who` of the `asset` with a deposit taken from the `depositor`.
|
/// Create an account for `who` of the `asset` with a deposit taken from the `depositor`.
|
||||||
fn touch(asset: AssetId, who: AccountId, depositor: AccountId) -> DispatchResult;
|
fn touch(asset: AssetId, who: AccountId, depositor: AccountId) -> DispatchResult;
|
||||||
|
|||||||
Reference in New Issue
Block a user