0.38-stable (#372)
This commit is contained in:
@@ -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}`);
|
||||
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user