diff --git a/packages/page-settings/src/Metadata/Extensions.tsx b/packages/page-settings/src/Metadata/Extensions.tsx index 56fda7501799..5e1e178ca1a9 100644 --- a/packages/page-settings/src/Metadata/Extensions.tsx +++ b/packages/page-settings/src/Metadata/Extensions.tsx @@ -25,9 +25,6 @@ interface Props { function Extensions({ chainInfo, className, rawMetadata }: Props): React.ReactElement { const rawDef: MetadataDef = objectSpread({}, { ...chainInfo, rawMetadata: rawMetadata ? rawMetadata : '0x00' }) - console.log('raw placeholder', rawMetadata) - // const rawDef = chainInfo; - console.log('rawDef in Extensions.tsx:', rawDef); const { t } = useTranslation(); const { extensions } = useExtensions(); @@ -46,16 +43,11 @@ function Extensions({ chainInfo, className, rawMetadata }: Props): React.ReactEl if (chainInfo && extensions?.[selectedIndex]) { toggleBusy(); - console.log('running _updateMeta'); - console.log('running new rawDef', rawDef); - - extensions[selectedIndex] .update(rawDef) .catch(() => false) .then(() => toggleBusy()) .catch(console.error); - console.log('updated') } }, [chainInfo, extensions, rawDef, selectedIndex, toggleBusy] diff --git a/packages/page-settings/src/useRawMetadata.ts b/packages/page-settings/src/useRawMetadata.ts index 0162e2673efb..9f7e10e3a17d 100644 --- a/packages/page-settings/src/useRawMetadata.ts +++ b/packages/page-settings/src/useRawMetadata.ts @@ -7,22 +7,20 @@ import { useEffect, useState } from 'react'; import { createNamedHook, useApi, } from '@polkadot/react-hooks'; -function useRawMetadataImpl (): HexString | null { - const { api, isApiReady} = useApi(); +function useRawMetadataImpl(): HexString | null { + const { api, isApiReady } = useApi(); const [state, setState] = useState(null); useEffect( - ():void => { - isApiReady - && api.call.metadata.metadataAtVersion(15).then((opaque) => { - const raw = opaque.toHex(); + (): void => { + isApiReady + && api.call.metadata.metadataAtVersion(15).then((opaque) => { + const raw = opaque.toHex(); - console.log('raw: ', raw); + setState(raw) - setState(raw) - - - }).catch()}, + }).catch() + }, [api, isApiReady] ); diff --git a/packages/react-hooks/src/useLedger.ts b/packages/react-hooks/src/useLedger.ts index 950ab94dcce7..d0189f45bf02 100644 --- a/packages/react-hooks/src/useLedger.ts +++ b/packages/react-hooks/src/useLedger.ts @@ -41,7 +41,6 @@ let ledger: LedgerGeneric | null = null; let ledgerType: TransportType | null = null; function retrieveLedger (api: ApiPromise): LedgerGeneric { - console.log('retrieve ledger'); const currType = uiSettings.ledgerConn as TransportType; if (!ledger || ledgerType !== currType) { diff --git a/packages/react-signer/src/TxSigned.tsx b/packages/react-signer/src/TxSigned.tsx index d0bd76ec4c63..5fc2d5a2fcd4 100644 --- a/packages/react-signer/src/TxSigned.tsx +++ b/packages/react-signer/src/TxSigned.tsx @@ -193,9 +193,6 @@ async function wrapTx (api: ApiPromise, currentItem: QueueTx, { isMultiCall, mul async function extractParams (api: ApiPromise, address: string, options: Partial, getLedger: () => LedgerGeneric, setQrState: (state: QrState) => void): Promise<['qr' | 'signing', string, Partial, boolean]> { const pair = keyring.getPair(address); const { meta: { accountOffset, addressOffset, isExternal, isHardware, isInjected, isLocal, isProxied, source } } = pair; - console.log('isHardware: ', isHardware); - console.log('isExternal ', isExternal); - console.log('isInjexted: ', isInjected); if (isHardware) { return ['signing', address, { ...options, signer: new LedgerSigner(api, getLedger, accountOffset || 0, addressOffset || 0) }, false]; @@ -212,10 +209,6 @@ async function extractParams (api: ApiPromise, address: string, options: Partial assert(injected, `Unable to find a signer for ${address}`); - console.log('injected signer metadata: ',injected.metadata); - console.log('injected signer withST: ',options.withSignedTransaction); - console.log('injected signer mode: ', options.mode); - return ['signing', address, { ...options, signer: injected.signer }, false]; }