File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/abi-typegen/src/utils Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- import { ErrorCode } from '../abi/errors/ErrorCode' ;
1
+ import type { ErrorCode } from '../abi/errors/ErrorCode' ;
2
2
import type { IType } from '../types/interfaces/IType' ;
3
3
import type { JsonAbiErrorCode } from '../types/interfaces/JsonAbi' ;
4
4
@@ -10,9 +10,9 @@ export function parseErrorCodes(params: {
10
10
} ) {
11
11
// const { types, rawErrorCodes } = params;
12
12
const { rawErrorCodes } = params ;
13
- const errorCodes : ErrorCode [ ] = Object . entries ( rawErrorCodes ?? { } ) . map ( ( [ code , value ] ) => {
14
- return makeErrorCode ( { code, value } ) ;
15
- } ) ;
13
+ const errorCodes : ErrorCode [ ] = Object . entries ( rawErrorCodes ?? { } ) . map ( ( [ code , value ] ) =>
14
+ makeErrorCode ( { code, value } )
15
+ ) ;
16
16
17
17
return errorCodes ;
18
18
}
You can’t perform that action at this time.
0 commit comments