docs(ethers-providers): fixed typos in rw client docs (#1957)

This commit is contained in:
Sebastiano Faiella 2022-12-22 14:59:20 -04:00 committed by GitHub
parent 73039ba264
commit 253202f96a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -3,7 +3,9 @@
## ethers-core
### 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)
- `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.

View File

@ -9,7 +9,7 @@ use serde::{de::DeserializeOwned, Serialize};
use thiserror::Error;
/// A client contains two clients.
/// A client containing two clients.
///
/// One is used for _read_ operations
/// One is used for _write_ operations that consume gas `["eth_sendTransaction",
@ -48,7 +48,7 @@ impl<Read, Write> RwClient<Read, Write> {
&self.r
}
/// Returns the client used for read operations
/// Returns the client used for write operations
pub fn write_client(&self) -> &Write {
&self.w
}