0.38-stable (#372)

This commit is contained in:
Jaco Greeff
2019-03-18 16:44:23 +01:00
committed by GitHub
parent 8d901db281
commit 7b0a39a2fa
13 changed files with 29 additions and 31 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ export default class Keyring implements KeyringInstance {
private _type: KeypairType;
constructor (options: KeyringOptions = {}) {
options.type = options.type || 'sr25519';
options.type = options.type || 'ed25519';
assert(options && ['ed25519', 'sr25519'].includes(options.type || 'undefined'), `Expected a keyring type of either 'ed25519' or 'sr25519', found '${options.type}`);
-2
View File
@@ -51,8 +51,6 @@ const PAIRS = [
* are available on the dev chain and each test account is initialised with DOT funds.
*/
export default function testKeyring (options: KeyringOptions = {}, isDerived: boolean = true): KeyringInstance {
options.type = options.type || (isDerived ? 'sr25519' : 'ed25519');
const keyring = new Keyring(options);
SEEDS.forEach((entry, index) => {