Skip to content

Commit f5499ca

Browse files
authored
Don't show Call/Event extract warning pre-v14 (#4528)
1 parent 37ae595 commit f5499ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/types/src/metadata/PortableRegistry/PortableRegistry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ function registerTypes (lookup: PortableRegistry, lookups: Record<string, string
288288
// this extracts aliases based on what we know the runtime config looks like in a
289289
// Substrate chain. Specifically we want to have access to the Call and Event params
290290
function extractAliases (params: Record<string, SiTypeParameter[]>, isContract?: boolean): Record<number, string> {
291-
const hasParams = Object.keys(params).length !== 0;
291+
const hasParams = Object.keys(params).some((k) => !k.startsWith('Pallet'));
292292
const alias: Record<number, string> = {};
293293

294294
if (params.SpRuntimeUncheckedExtrinsic) {

0 commit comments

Comments
 (0)