[#897] signer.signRaw signing doesn't work with Ledger Nano X (#905)

* [#897] signer.signRaw signing doesn't work with Ledger Nano X

* [#897] signer.signRaw signing doesn't work with Ledger Nano X

* [#897] Update quotes format

* [#897] Linter autofix
This commit is contained in:
Aleksandr Ishchenko 2021-12-06 20:02:36 +03:00 committed by GitHub
parent 629b805cb0
commit 0eb471f5da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View File

@ -11,7 +11,8 @@ import React, { useCallback, useContext, useEffect, useState } from 'react';
import { TypeRegistry } from '@polkadot/types';
import { decodeAddress } from '@polkadot/util-crypto';
import { AccountContext, ActionContext, Address, VerticalSpace } from '../../../components';
import { AccountContext, ActionContext, Address, VerticalSpace, Warning } from '../../../components';
import { useTranslation } from '../../../components/translate';
import { approveSignSignature } from '../../../messaging';
import Bytes from '../Bytes';
import Extrinsic from '../Extrinsic';
@ -48,6 +49,7 @@ export default function Request ({ account: { accountIndex, addressOffset, isExt
const [{ hexBytes, payload }, setData] = useState<Data>({ hexBytes: null, payload: null });
const [error, setError] = useState<string | null>(null);
const { accounts } = useContext(AccountContext);
const { t } = useTranslation();
useEffect((): void => {
const payload = request.payload;
@ -160,6 +162,10 @@ export default function Request ({ account: { accountIndex, addressOffset, isExt
)
}
<VerticalSpace />
{isHardware && <>
<Warning>{t('Message signing is not supported for hardware wallets.')}</Warning>
<VerticalSpace />
</>}
<SignArea
buttonText={buttonText}
error={error}

View File

@ -160,5 +160,6 @@
"password for encrypting all accounts": "",
"I want to export all my accounts": "",
"Notifications": "",
"Search by name or network...": ""
"Search by name or network...": "",
"Message signing is not supported for hardware wallets.": ""
}