Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function parseU32(sourceString: string): number {
const value = parse32I(sourceString);
if (value < 0) {
throw new CompileError("Illegal value for u32: " + sourceString);
}
return value;
}