diff --git a/packages/types-known/src/index.ts b/packages/types-known/src/index.ts index 9feb9823fe..4848883f0a 100644 --- a/packages/types-known/src/index.ts +++ b/packages/types-known/src/index.ts @@ -12,7 +12,6 @@ import typesChain from './chain'; import typesModules from './modules'; import typesSpec from './spec'; import upgrades from './upgrades'; -import warnings from './warnings'; // flatten a VersionedType[] into a Record /** @internal */ @@ -46,8 +45,6 @@ export function getSpecTypes ({ knownTypes }: Registry, chainName: Text | string const _specName = specName.toString(); const _specVersion = bnToBn(specVersion).toNumber(); - (warnings[_specName] || []).forEach((warning) => console.warn(`*** ${warning}`)); - // The order here is always, based on - // - spec then chain // - typesBundle takes higher precedence diff --git a/packages/types-known/src/warnings.ts b/packages/types-known/src/warnings.ts deleted file mode 100644 index 512437342c..0000000000 --- a/packages/types-known/src/warnings.ts +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2017-2020 @polkadot/types-known authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -// Type overrides for specific spec types & versions as given in runtimeVersion -const warnings: Record = { - 'node-template': [ - '', - 'You are using the node-template, depending on your config and age of the template, you may', - 'have some unexpected results without applying the correct config for your node type:', - '', - '- If you have trouble sending txs, apply https://polkadot.js.org/docs/api/FAQ#i-cannot-send-transactions-from-my-node-template-based-chain', - '- If you have trouble parsing events, apply https://polkadot.js.org/docs/api/FAQ#using-a-non-current-master-node-i-have-issues-parsing-events', - '' - ] -}; - -export default warnings;