mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 07:01:05 +00:00
Minimum balance (#3519)
This commit is contained in:
committed by
Gavin Wood
parent
feecfc856d
commit
63c15c9803
@@ -154,6 +154,9 @@ pub trait Ext {
|
||||
/// Returns a reference to the timestamp of the current block
|
||||
fn now(&self) -> &MomentOf<Self::T>;
|
||||
|
||||
/// Returns the minimum balance that is required for creating an account.
|
||||
fn minimum_balance(&self) -> BalanceOf<Self::T>;
|
||||
|
||||
/// Returns a random number for the current block with the given subject.
|
||||
fn random(&self, subject: &[u8]) -> SeedOf<Self::T>;
|
||||
|
||||
@@ -766,6 +769,10 @@ where
|
||||
&self.timestamp
|
||||
}
|
||||
|
||||
fn minimum_balance(&self) -> BalanceOf<T> {
|
||||
self.ctx.config.existential_deposit
|
||||
}
|
||||
|
||||
fn deposit_event(&mut self, topics: Vec<T::Hash>, data: Vec<u8>) {
|
||||
self.ctx.deferred.push(DeferredAction::DepositEvent {
|
||||
topics,
|
||||
|
||||
Reference in New Issue
Block a user