Rename frozenFee (#1792)

This commit is contained in:
Jaco Greeff
2020-02-02 09:11:49 +01:00
committed by GitHub
parent c76fb20a83
commit 56e28bed7f
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -14,12 +14,12 @@ import { memo } from '../util';
type Result = [Balance, Balance, Balance, Balance, Index];
function calcBalances (api: ApiInterfaceRx, [accountId, [freeBalance, reservedBalance, frozenFree, frozenMisc, accountNonce]]: [AccountId, Result]): DerivedBalancesAccount {
function calcBalances (api: ApiInterfaceRx, [accountId, [freeBalance, reservedBalance, frozenFee, frozenMisc, accountNonce]]: [AccountId, Result]): DerivedBalancesAccount {
return {
accountId,
accountNonce,
freeBalance,
frozenFree,
frozenFee,
frozenMisc,
reservedBalance,
votingBalance: createType(api.registry, 'Balance', freeBalance.add(reservedBalance))
+2 -2
View File
@@ -17,7 +17,7 @@ import { memo } from '../util';
type ResultBalance = [VestingInfo | null, (BalanceLock | BalanceLockTo212)[]];
type Result = [DerivedBalancesAccount, BlockNumber, ResultBalance];
function calcBalances (api: ApiInterfaceRx, [{ accountId, accountNonce, freeBalance, frozenFree, frozenMisc, reservedBalance, votingBalance }, bestNumber, [vesting, locks]]: Result): DerivedBalancesAll {
function calcBalances (api: ApiInterfaceRx, [{ accountId, accountNonce, freeBalance, frozenFee, frozenMisc, reservedBalance, votingBalance }, bestNumber, [vesting, locks]]: Result): DerivedBalancesAll {
let lockedBalance = createType(api.registry, 'Balance');
let lockedBreakdown: (BalanceLock | BalanceLockTo212)[] = [];
@@ -57,7 +57,7 @@ function calcBalances (api: ApiInterfaceRx, [{ accountId, accountNonce, freeBala
accountNonce,
availableBalance,
freeBalance,
frozenFree,
frozenFee,
frozenMisc,
isVesting,
lockedBalance,