File tree Expand file tree Collapse file tree
packages/core/src/actions Expand file tree Collapse file tree Original file line number Diff line number Diff 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'
2429import { getAction } from '../utils/getAction.js'
2530import {
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
You can’t perform that action at this time.
0 commit comments