diff --git a/ethers-core/src/utils/mod.rs b/ethers-core/src/utils/mod.rs index 7b833f46..e4eef1d9 100644 --- a/ethers-core/src/utils/mod.rs +++ b/ethers-core/src/utils/mod.rs @@ -87,7 +87,7 @@ pub fn get_contract_address(sender: impl Into
, nonce: impl Into) /// Returns the CREATE2 of a smart contract as specified in /// [EIP1014](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1014.md) /// -/// keccak256( 0xff ++ senderAddress ++ salt ++ keccak256(init_code))[12:] +/// keccak256( 0xff ++ senderAddress ++ salt ++ keccak256(init_code))[12..] pub fn get_create2_address( from: impl Into
, salt: impl Into, diff --git a/ethers-signers/src/lib.rs b/ethers-signers/src/lib.rs index 7c70ab34..8a0c46d6 100644 --- a/ethers-signers/src/lib.rs +++ b/ethers-signers/src/lib.rs @@ -33,6 +33,10 @@ //! signature.verify("hello world", wallet.address()).unwrap(); //! # Ok(()) //! # } +//! ``` +//! +//! [`Transaction`]: ethers_core::types::Transaction +//! [`TransactionRequest`]: ethers_core::types::TransactionRequest // mod wallet; // pub use wallet::Wallet; mod wallet; diff --git a/ethers/src/lib.rs b/ethers/src/lib.rs index 1f45bc15..6e42ff9d 100644 --- a/ethers/src/lib.rs +++ b/ethers/src/lib.rs @@ -56,9 +56,7 @@ //! ## `signers` //! //! For security reasons, you typically do not want your private keys to be stored on the nodes. -//! This module provides a [`Wallet`] type for loading a private key which can be connected with a -//! [`Provider`] to produce a [`Client`]. The [`Client`] type is the object via which we recommend -//! users with local private keys to use when interacting with Ethereum. +//! This module provides a [`Wallet`] type for connecting to a private key or a YubiHSM2 //! //! ## `contract` //! @@ -74,9 +72,7 @@ //! It also provides typesafe bindings via the [`abigen`] macro and the [`Abigen` builder]. //! //! [`Provider`]: providers::Provider -//! //! [`Wallet`]: signers::Wallet -//! [`Client`]: signers::Client //! //! [`ContractFactory`]: contract::ContractFactory //! [`Contract`]: contract::Contract