File tree 2 files changed +2
-1
lines changed
packages/hardhat-viem/src
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ export async function getContractAt(
198
198
config : GetContractAtConfig = { }
199
199
) : Promise < GetContractReturnType > {
200
200
const [ publicClient , walletClient , contractArtifact ] = await Promise . all ( [
201
- getPublicClient ( network . provider ) ,
201
+ config . publicClient ?? getPublicClient ( network . provider ) ,
202
202
config . walletClient ??
203
203
getDefaultWalletClient ( network . provider , network . name ) ,
204
204
artifacts . readArtifact ( contractName ) ,
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ export type SendDeploymentTransactionConfig = SendTransactionConfig;
34
34
35
35
export interface GetContractAtConfig {
36
36
walletClient ?: WalletClient ;
37
+ publicClient ?: PublicClient ;
37
38
}
38
39
39
40
export type GetContractReturnType <
You can’t perform that action at this time.
0 commit comments