Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Aug 18, 2024
1 parent 5e54b99 commit a6a6acb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/internal/abi/encode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { BaseError } from '../errors/base.js'
import type { GlobalErrorType } from '../errors/error.js'
import { booleanToHex, numberToHex, stringToHex } from '../hex/toHex.js'
import type { Hex } from '../types/data.js'
import type { Prettify } from '../types/utils.js'
import type { Compute } from '../types/utils.js'

// TODO: These types should be in abitype?
/** @internal */
Expand All @@ -32,7 +32,7 @@ export type IsomorphicAbiParameter = AbiParameter | AbiType | (string & {})
/** @internal */
export type IsomorphicAbiParametersToPrimitiveTypes<
types extends readonly IsomorphicAbiParameter[],
> = Prettify<{
> = Compute<{
[key in keyof types]: types[key] extends AbiParameter
? AbiParameterToPrimitiveType<types[key]>
: types[key] extends AbiType
Expand Down
4 changes: 2 additions & 2 deletions src/internal/abi/getItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import type {
Widen,
} from '../types/abi.js'
import type { Hex } from '../types/data.js'
import type { UnionEvaluate } from '../types/utils.js'
import type { UnionCompute } from '../types/utils.js'
import { getSelector } from './getSelector.js'
import { getSignatureHash } from './getSignatureHash.js'

Expand All @@ -28,7 +28,7 @@ export type GetAbiItemParameters<
| allNames // show all options
| (name extends allNames ? name : never) // infer value
| Hex // function selector
} & UnionEvaluate<
} & UnionCompute<
readonly [] extends allArgs
? {
args?:
Expand Down

0 comments on commit a6a6acb

Please sign in to comment.