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'; ...@@ -2,6 +2,8 @@ import { Keyring } from '@polkadot/keyring';
import { KeyringPair as KeyringPairBase } from '@polkadot/keyring/types'; import { KeyringPair as KeyringPairBase } from '@polkadot/keyring/types';
import { mnemonicGenerate } from '@polkadot/util-crypto'; import { mnemonicGenerate } from '@polkadot/util-crypto';
import { KUSAMA_SS58_FORMAT } from './util/constants';
/** /**
* A keyring pair * A keyring pair
*/ */
...@@ -12,6 +14,7 @@ export interface KeyringPair extends KeyringPairBase {} // eslint-disable-line @ ...@@ -12,6 +14,7 @@ export interface KeyringPair extends KeyringPairBase {} // eslint-disable-line @
*/ */
export function generateKeypair(): KeyringPair { export function generateKeypair(): KeyringPair {
const keyring = new Keyring(); const keyring = new Keyring();
keyring.setSS58Format(KUSAMA_SS58_FORMAT);
return keyring.addFromMnemonic(mnemonicGenerate()); 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