File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22" chainlink-deployments-framework " : patch
33---
44
5- Add confirm func options for faster ticker
5+ Adds a new EVM Confirm Functor which allows the user to specify a custom wait interval for checking confirmation.
6+ Example
7+
8+ ``` golang
9+ p , err := cldf_evm_provider.NewRPCChainProvider (
10+ d.ChainSelector ,
11+ cldf_evm_provider.RPCChainProviderConfig {
12+ DeployerTransactorGen : cldf_evm_provider.TransactorFromRaw (
13+ getNetworkPrivateKey (),
14+ ),
15+ RPCs : []rpcclient.RPC {
16+ {
17+ Name: " default" ,
18+ WSURL: rpcWSURL,
19+ HTTPURL: rpcHTTPURL,
20+ PreferredURLScheme: rpcclient.URLSchemePreferenceHTTP ,
21+ },
22+ },
23+ ConfirmFunctor : cldf_evm_provider.ConfirmFuncGeth (
24+ 30 *time.Second ,
25+ // set custom confirm ticker time because Anvil's blocks are instant
26+ cldf_evm_provider.WithTickInterval (5 *time.Millisecond ),
27+ ),
28+ },
29+ ).Initialize (context.Background ())
30+ ```
You can’t perform that action at this time.
0 commit comments