Skip to content

Commit 127afa6

Browse files
committed
chore: tweaks
1 parent d7510f9 commit 127afa6

1 file changed

Lines changed: 18 additions & 11 deletions

File tree

packages/core/src/actions/simulateContract.ts

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ import type {
2020
ChainIdParameter,
2121
ConnectorParameter,
2222
} from '../types/properties.js'
23-
import type { Compute, PartialBy, UnionStrictOmit } from '../types/utils.js'
23+
import type {
24+
Compute,
25+
PartialBy,
26+
UnionCompute,
27+
UnionStrictOmit,
28+
} from '../types/utils.js'
2429
import { getAction } from '../utils/getAction.js'
2530
import {
2631
type GetConnectorClientErrorType,
@@ -45,16 +50,18 @@ export type SimulateContractParameters<
4550
///
4651
chains extends readonly Chain[] = SelectChains<config, chainId>,
4752
> = {
48-
[key in keyof chains]: UnionStrictOmit<
49-
viem_SimulateContractParameters<
50-
abi,
51-
functionName,
52-
args,
53-
chains[key],
54-
chains[key],
55-
Account | Address
56-
>,
57-
'chain'
53+
[key in keyof chains]: UnionCompute<
54+
UnionStrictOmit<
55+
viem_SimulateContractParameters<
56+
abi,
57+
functionName,
58+
args,
59+
chains[key],
60+
chains[key],
61+
Account | Address
62+
>,
63+
'chain'
64+
>
5865
> &
5966
ChainIdParameter<config, chainId> &
6067
ConnectorParameter

0 commit comments

Comments
 (0)