From b1e8fcf16e87e407166e24831c58364bf09b53f4 Mon Sep 17 00:00:00 2001 From: Jaco Date: Fri, 7 Jan 2022 13:48:00 +0100 Subject: [PATCH] Allow WrapperKeepOpaque as a wrapper (#4424) --- packages/types-codec/src/utils/sanitize.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/types-codec/src/utils/sanitize.ts b/packages/types-codec/src/utils/sanitize.ts index 404e569c2d..896ed3aa95 100644 --- a/packages/types-codec/src/utils/sanitize.ts +++ b/packages/types-codec/src/utils/sanitize.ts @@ -8,7 +8,7 @@ interface SanitizeOptions { type Mapper = (value: string, options?: SanitizeOptions) => string; const BOUNDED = ['BTreeMap', 'BTreeSet', 'HashMap', 'Vec']; -const ALLOWED_BOXES = BOUNDED.concat(['Compact', 'DoNotConstruct', 'Int', 'Linkage', 'Range', 'RangeInclusive', 'Result', 'Option', 'UInt', 'WrapperOpaque']); +const ALLOWED_BOXES = BOUNDED.concat(['Compact', 'DoNotConstruct', 'Int', 'Linkage', 'Range', 'RangeInclusive', 'Result', 'Option', 'UInt', 'WrapperKeepOpaque', 'WrapperOpaque']); const BOX_PRECEDING = ['<', '(', '[', '"', ',', ' ']; // start of vec, tuple, fixed array, part of struct def or in tuple const mappings: Mapper[] = [