mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 01:11:10 +00:00
Contracts: seal0::balance should return the free balance (#1254)
This commit is contained in:
@@ -30,7 +30,7 @@ use frame_support::{
|
||||
storage::{with_transaction, TransactionOutcome},
|
||||
traits::{
|
||||
fungible::{Inspect, Mutate},
|
||||
tokens::Preservation,
|
||||
tokens::{Fortitude, Preservation},
|
||||
Contains, OriginTrait, Randomness, Time,
|
||||
},
|
||||
weights::Weight,
|
||||
@@ -1368,7 +1368,11 @@ where
|
||||
}
|
||||
|
||||
fn balance(&self) -> BalanceOf<T> {
|
||||
T::Currency::balance(&self.top_frame().account_id)
|
||||
T::Currency::reducible_balance(
|
||||
&self.top_frame().account_id,
|
||||
Preservation::Preserve,
|
||||
Fortitude::Polite,
|
||||
)
|
||||
}
|
||||
|
||||
fn value_transferred(&self) -> BalanceOf<T> {
|
||||
|
||||
Reference in New Issue
Block a user