Make derive types work, and a bit more readable (#1430)

* Fix typings for derive

* Fix typings

* Spacing
This commit is contained in:
Amaury Martiny
2019-10-01 14:30:53 +02:00
committed by GitHub
parent bddb48f452
commit fadb1ffdd8
11 changed files with 70 additions and 65 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ function calcBalances ([accountId = createType('AccountId'), bestNumber = create
reservedBalance,
vestedBalance,
votingBalance: freeBalance.add(reservedBalance)
} as unknown as DerivedBalances;
} as DerivedBalances;
}
/**
+1 -1
View File
@@ -62,7 +62,7 @@ export function fees (api: ApiInterfaceRx): () => Observable<DerivedFees> {
transactionBaseFee,
transactionByteFee,
transferFee
} as unknown as DerivedFees)),
})),
drr()
);
};