remove deprecated util-crypto setSs58 (#516)
Co-authored-by: Github Actions <action@github.com>
This commit is contained in:
parent
5cf1014edf
commit
e5eef19d04
@ -8,7 +8,6 @@ import React, { useEffect, useState } from 'react';
|
|||||||
import { Route, Switch } from 'react-router';
|
import { Route, Switch } from 'react-router';
|
||||||
import { PHISHING_PAGE_REDIRECT } from '@polkadot/extension-base/defaults';
|
import { PHISHING_PAGE_REDIRECT } from '@polkadot/extension-base/defaults';
|
||||||
import uiSettings from '@polkadot/ui-settings';
|
import uiSettings from '@polkadot/ui-settings';
|
||||||
import { setSS58Format } from '@polkadot/util-crypto';
|
|
||||||
|
|
||||||
import { Loading, ErrorBoundary } from '../components';
|
import { Loading, ErrorBoundary } from '../components';
|
||||||
import { AccountContext, ActionContext, AuthorizeReqContext, MediaContext, MetadataReqContext, SettingsContext, SigningReqContext } from '../components/contexts';
|
import { AccountContext, ActionContext, AuthorizeReqContext, MediaContext, MetadataReqContext, SettingsContext, SigningReqContext } from '../components/contexts';
|
||||||
@ -89,7 +88,6 @@ export default function Popup (): React.ReactElement {
|
|||||||
uiSettings.on('change', (settings): void => {
|
uiSettings.on('change', (settings): void => {
|
||||||
setSettingsCtx(settings);
|
setSettingsCtx(settings);
|
||||||
setCameraOn(settings.camera === 'on');
|
setCameraOn(settings.camera === 'on');
|
||||||
setSS58Format(settings.prefix === -1 ? 42 : settings.prefix);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
_onAction();
|
_onAction();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user