docs(ethers-providers): fixed typos in rw client docs (#1957)
This commit is contained in:
parent
73039ba264
commit
253202f96a
|
@ -3,7 +3,9 @@
|
||||||
## ethers-core
|
## ethers-core
|
||||||
|
|
||||||
### Unreleased
|
### Unreleased
|
||||||
|
|
||||||
-
|
-
|
||||||
|
- Fix typo in `RwClient` docs for `write_client` method.
|
||||||
- Graceful handling of WebSocket transport errors [#1889](https://github.com/gakonst/ethers-rs/issues/1889) [#1815](https://github.com/gakonst/ethers-rs/issues/1815)
|
- Graceful handling of WebSocket transport errors [#1889](https://github.com/gakonst/ethers-rs/issues/1889) [#1815](https://github.com/gakonst/ethers-rs/issues/1815)
|
||||||
- `MiddlewareBuilder` trait to instantiate a `Provider` as `Middleware` layers.
|
- `MiddlewareBuilder` trait to instantiate a `Provider` as `Middleware` layers.
|
||||||
- An `Event` builder can be instantiated specifying the event filter type, without the need to instantiate a contract.
|
- An `Event` builder can be instantiated specifying the event filter type, without the need to instantiate a contract.
|
||||||
|
|
|
@ -9,7 +9,7 @@ use serde::{de::DeserializeOwned, Serialize};
|
||||||
|
|
||||||
use thiserror::Error;
|
use thiserror::Error;
|
||||||
|
|
||||||
/// A client contains two clients.
|
/// A client containing two clients.
|
||||||
///
|
///
|
||||||
/// One is used for _read_ operations
|
/// One is used for _read_ operations
|
||||||
/// One is used for _write_ operations that consume gas `["eth_sendTransaction",
|
/// One is used for _write_ operations that consume gas `["eth_sendTransaction",
|
||||||
|
@ -48,7 +48,7 @@ impl<Read, Write> RwClient<Read, Write> {
|
||||||
&self.r
|
&self.r
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the client used for read operations
|
/// Returns the client used for write operations
|
||||||
pub fn write_client(&self) -> &Write {
|
pub fn write_client(&self) -> &Write {
|
||||||
&self.w
|
&self.w
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue