We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47727cb commit 3c3135dCopy full SHA for 3c3135d
src/schema.ts
@@ -64,16 +64,17 @@ export function parseSchemaFromBytesWithRemainder(
64
65
const clTypeWithRemainder = matchBytesToCLType(remainder);
66
67
+ const clType = clTypeWithRemainder.result.unwrap();
68
+
69
if (!clTypeWithRemainder.remainder) {
70
throw new Error('remainder is empty');
71
}
72
- const clType = clTypeWithRemainder.result.unwrap();
-
73
schema.push({
74
property: fieldName,
75
value: clType,
76
});
77
78
remainder = clTypeWithRemainder.remainder;
79
80
0 commit comments