derive.chain.* allows for non-available session (#638)

* derive.chain.* allows for non-available session

* Cleanup typing

* Slightly more robust validators init
This commit is contained in:
Jaco Greeff
2019-01-26 16:45:11 +01:00
committed by GitHub
parent d482c3a917
commit 3ced943f36
3 changed files with 12 additions and 8 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ export default class Header extends Struct {
export class HeaderExtended extends Header {
private _author?: AccountId;
constructor (header: Header, sessionValidators: Array<AccountId>) {
constructor (header: Header, sessionValidators: Array<AccountId> = []) {
super(header);
const { digest: { logs } } = header;