Fix isGenesisSlot (only on Babe) (#1443)

This commit is contained in:
Jaco Greeff
2019-10-03 22:46:31 +02:00
committed by GitHub
parent a03a303b8f
commit f145fe7c8b
+1 -1
View File
@@ -108,7 +108,7 @@ export function info (api: ApiInterfaceRx): () => Observable<DerivedSessionInfo>
// https://github.com/paritytech/substrate/pull/2802/files#diff-5e5e1c3aec9ddfde0a9054d062ab3db9R156
of([
hasBabe,
!!api.query.babe.genesisSlot,
hasBabe && !!api.query.babe.genesisSlot,
hasBabe
? api.consts.babe.epochDuration
: ONE,