Skip to content

Commit fb6db14

Browse files
committed
refactor(sdk): split client initialization from job creation in documentation example
- Separate Erc8183 client instantiation from job() call in lib.rs example - Add intermediate `client` variable to clarify two-step initialization pattern - Improve code readability by making client reusability more explicit
1 parent 1c54955 commit fb6db14

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

erc8183/src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@
2323
//! .connect_http(network.rpc_url().parse()?);
2424
//!
2525
//! // 2. Create client and get a job handle
26-
//! let job = Erc8183::new(provider)
27-
//! .with_network(network)
28-
//! .job()?;
26+
//! let client = Erc8183::new(provider).with_network(network);
27+
//! let job = client.job()?;
2928
//!
3029
//! // 3. Create a job (requires signer-enabled provider)
3130
//! let params = CreateJobParams::new(

0 commit comments

Comments
 (0)