Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Commit

Permalink
fix: missing codegen change (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjjfvi authored and harrysolovay committed Oct 19, 2022
1 parent 470df62 commit 4d2d06f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion codegen/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,6 @@ export function printDecls(decls: Decl[]) {
? 1
: 0
);
return [...(done.map((x) => S.toString(x.code)))].join("\n");
// Deduplicate -- metadata has redundant entries (e.g. pallet_collective::RawOrigin)
return [...new Set(done.map((x) => S.toString(x.code)))].join("\n");
}

0 comments on commit 4d2d06f

Please sign in to comment.