Skip to content

Commit 42afdac

Browse files
committed
feat: 🎸 publicClient added to Client options
1 parent 5256275 commit 42afdac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/shared/options.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Libp2pInit } from 'libp2p';
2-
import { Hash, Hex } from 'viem';
2+
import { Hash, Hex, PublicClient } from 'viem';
33
import { ProtocolChain } from '../utils/contracts.js';
44
import { StorageInitializer } from '../storage/abstract.js';
55

@@ -56,6 +56,8 @@ export interface ClientOptions extends ChainsConfigOption, ServerAddressOption {
5656
storageInitializer: StorageInitializer;
5757
/** DB keys prefix */
5858
dbKeysPrefix: string;
59+
/** Viem public client */
60+
publicClient: PublicClient;
5961
}
6062

6163
/**

0 commit comments

Comments
 (0)