|
@@ -138,12 +138,13 @@ export function downloadAccount ({ json, pair }: CreateResult): void {
|
|
FileSaver.saveAs(blob, `${pair.address}.json`);
|
|
FileSaver.saveAs(blob, `${pair.address}.json`);
|
|
}
|
|
}
|
|
|
|
|
|
-function createAccount (suri: string, pairType: KeypairType, { genesisHash, name, tags = [] }: CreateOptions, password: string, success: string): ActionStatus {
|
|
|
|
|
|
+function createAccount (suri: string, pairType: KeypairType, { name, tags = [] }: CreateOptions, password: string, success: string): ActionStatus {
|
|
// we will fill in all the details below
|
|
// we will fill in all the details below
|
|
const status = { action: 'create' } as ActionStatus;
|
|
const status = { action: 'create' } as ActionStatus;
|
|
|
|
|
|
try {
|
|
try {
|
|
- const result = keyring.addUri(suri, password, { genesisHash, name, tags }, pairType);
|
|
|
|
|
|
+ // Joystream-specific - ignore genesisHash when creating new accounts
|
|
|
|
+ const result = keyring.addUri(suri, password, { name, tags }, pairType);
|
|
const { address } = result.pair;
|
|
const { address } = result.pair;
|
|
|
|
|
|
status.account = address;
|
|
status.account = address;
|