Don't show Call/Event extract warning pre-v14 (#4528)

This commit is contained in:
Jaco
2022-02-03 12:44:05 +02:00
committed by GitHub
parent 37ae595f03
commit f5499ca4ed
@@ -288,7 +288,7 @@ function registerTypes (lookup: PortableRegistry, lookups: Record<string, string
// this extracts aliases based on what we know the runtime config looks like in a
// Substrate chain. Specifically we want to have access to the Call and Event params
function extractAliases (params: Record<string, SiTypeParameter[]>, isContract?: boolean): Record<number, string> {
const hasParams = Object.keys(params).length !== 0;
const hasParams = Object.keys(params).some((k) => !k.startsWith('Pallet'));
const alias: Record<number, string> = {};
if (params.SpRuntimeUncheckedExtrinsic) {