This commit is contained in:
Jaco Greeff
2021-01-17 16:03:59 +01:00
committed by GitHub
parent 510d33fd89
commit 1a1f351207
16 changed files with 147 additions and 246 deletions
+5 -1
View File
@@ -110,7 +110,11 @@ export class Base {
}
this.#keyring = keyring;
this._genesisHash = options.genesisHash && options.genesisHash.toHex();
this._genesisHash = options.genesisHash && (
isString(options.genesisHash)
? options.genesisHash.toString()
: options.genesisHash.toHex()
);
this._store = options.store || this._store;
this.addAccountPairs();