Commit b5b9c201 authored by Amaury Martiny's avatar Amaury Martiny
Browse files

Use Kusama everywhere

parent 63abd36f
......@@ -2,6 +2,8 @@ import { Keyring } from '@polkadot/keyring';
import { KeyringPair as KeyringPairBase } from '@polkadot/keyring/types';
import { mnemonicGenerate } from '@polkadot/util-crypto';
import { KUSAMA_SS58_FORMAT } from './util/constants';
/**
* A keyring pair
*/
......@@ -12,6 +14,7 @@ export interface KeyringPair extends KeyringPairBase {} // eslint-disable-line @
*/
export function generateKeypair(): KeyringPair {
const keyring = new Keyring();
keyring.setSS58Format(KUSAMA_SS58_FORMAT);
return keyring.addFromMnemonic(mnemonicGenerate());
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment