You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -354,65 +320,68 @@ function Create ({ className = '', onClose, onStatusChange, seed: propsSeed, typ
354
320
isPadded
355
321
summary={t<string>('Advanced creation options')}
356
322
>
357
-
<Modal.Columnshint={t<string>('If you are moving accounts between applications, ensure that you use the correct type.')}>
358
-
<Dropdown
359
-
defaultValue={pairType}
360
-
help={t<string>('Determines what cryptography will be used to create this account. Note that to validate on Polkadot, the session account must use "ed25519".')}
361
-
label={t<string>('keypair crypto type')}
362
-
onChange={_onChangePairType}
363
-
options={
364
-
isEthereum
365
-
? settings.availableCryptosEth
366
-
: isLedgerEnabled
367
-
? settings.availableCryptosLedger
368
-
: settings.availableCryptos
369
-
}
370
-
tabIndex={-1}
371
-
/>
372
-
</Modal.Columns>
323
+
{
324
+
pairType!=='ethereum'&&<Modal.Columnshint={t<string>('If you are moving accounts between applications, ensure that you use the correct type.')}>
325
+
<Dropdown
326
+
defaultValue={pairType}
327
+
help={t<string>('Determines what cryptography will be used to create this account. Note that to validate on Polkadot, the session account must use "ed25519".')}
328
+
label={t<string>('keypair crypto type')}
329
+
onChange={_onChangePairType}
330
+
options={
331
+
isEthereum
332
+
? settings.availableCryptosEth
333
+
: isLedgerEnabled
334
+
? settings.availableCryptosLedger
335
+
: settings.availableCryptos
336
+
}
337
+
tabIndex={-1}
338
+
/>
339
+
</Modal.Columns>}
373
340
{pairType==='ed25519-ledger'
374
341
? (
375
342
<CreateSuriLedger
376
343
onChange={_onChangePath}
377
344
seedType={seedType}
378
345
/>
379
346
)
380
-
: (
381
-
<Modal.Columnshint={
382
-
pairType==='ethereum'&&seedType==='raw'
383
-
? t<string>('The derivation path is only relevant when deriving keys from a mnemonic.')
384
-
: t<string>('The derivation path allows you to create different accounts from the same base mnemonic.')
385
-
}>
386
-
{(pairType!=='ethereum'||seedType!=='raw')&&(
347
+
: pairType==='ethereum'
348
+
? (
349
+
<CreateEthDerivationPath
350
+
derivePath={derivePath}
351
+
deriveValidation={deriveValidation}
352
+
onChange={_onChangePath}
353
+
seed={seed}
354
+
seedType={seedType}
355
+
/>
356
+
)
357
+
: (
358
+
<Modal.Columnshint={t<string>('The derivation path allows you to create different accounts from the same base mnemonic.')}>
387
359
<Input
388
-
help={(pairType==='ethereum' ? t<string>('You can set a custom derivation path for this account using the following syntax "m/<purpose>/<coin_type>/<account>/<change>/<address_index>') : t<string>('You can set a custom derivation path for this account using the following syntax "/<soft-key>//<hard-key>". The "/<soft-key>" and "//<hard-key>" may be repeated and mixed`. An optional "///<password>" can be used with a mnemonic seed, and may only be specified once.'))}
help={(t<string>('You can set a custom derivation path for this account using the following syntax "/<soft-key>//<hard-key>". The "/<soft-key>" and "//<hard-key>" may be repeated and mixed`. An optional "///<password>" can be used with a mnemonic seed, and may only be specified once.'))}
0 commit comments