Skip to content

Commit 24f10f9

Browse files
code refact
Co-authored-by: Peter Smith <peter@blueoceancomputing.co.uk>
1 parent e29d2de commit 24f10f9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/abi-typegen/src/utils/parseErrorCodes.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ export function parseErrorCodes(params: {
1111
// const { types, rawErrorCodes } = params;
1212
const { rawErrorCodes } = params;
1313
const errorCodes: ErrorCode[] = Object.entries(rawErrorCodes ?? {}).map(([code, value]) => {
14-
const error = makeErrorCode({ code, value });
15-
return new ErrorCode(error);
14+
return makeErrorCode({ code, value });
1615
});
1716

1817
return errorCodes;

0 commit comments

Comments
 (0)