Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/eip191-token-claim/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub struct Message<'a> {
pub genesis_hash: &'a [u8; 32],
}

impl<'a> Message<'a> {
impl Message<'_> {
/// Prepare EIP-191 token claim message.
pub fn prepare_message(&self) -> Vec<u8> {
let mut buf = vec![];
Expand Down
4 changes: 2 additions & 2 deletions crates/humanode-peer/src/time_warp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
//! 2. Revert the peer's data blocks to the latest finalized block by running `./humanode-peer revert`.
//!
//! 3. Define the time in the future when the warp is going to be started.
//! In other words, it's `REVIVE_TIMESTAMP` (by default, timestamp of exact the peer binary run).
//! In other words, it's `REVIVE_TIMESTAMP` (by default, timestamp of exact the peer binary run).
//!
//! 4. Define `WARP_FACTOR` that is going to be adopted to do time warp.
//!
//! 5. Run the peer in time warp mode by passing `--time-warp-fork-timestamp`, `--time-warp-revive-timestamp`,
//! `--time-warp-factor`.
//! `--time-warp-factor`.
//!
//! 6. When the correct timestamp has been reached switch the peer to usual running mode.

Expand Down
1 change: 1 addition & 0 deletions crates/humanode-runtime/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ pub mod evm_fees {
/// - a simple transfer costs 21000 gas
/// - we want the cost of this transfer to be around ~0.2 HMND
/// - so we must charge about 0.2 * 10^18 / 21000 fee per a unit of gas
///
/// The value below is a nice round number that fits the requirements outlined above.
pub const FEE_PER_GAS: u128 = 10_000_000_000_000;

Expand Down
1 change: 1 addition & 0 deletions crates/humanode-runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ pub type Signature = MultiSignature;
/// salt/nonce; note that there are currently multiple simultaneously supported algorithms for
/// how the contract addresses can be constructed by the EVM, and new might be introduced in
/// the future.
///
/// Both of the 20-byte EVM address types are stored with a certain format in a wider 32-byte
/// [`AccountId32`] type, that enables us to distinguish them from other address types; there's
/// a certain chance that a non-EVM address would just so happen to be matching the EVM address
Expand Down
3 changes: 3 additions & 0 deletions crates/precompile-utils/macro/tests/tests.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Ignore incompatible lints from original project.
#![allow(missing_docs)]

use sha3::{Digest, Keccak256};

#[precompile_utils_macro::generate_function_selector]
Expand Down
2 changes: 1 addition & 1 deletion crates/primitives-liveness-data/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl<'a> From<&'a [u8]> for OpaqueLivenessDataRef<'a> {
}
}

impl<'a> AsRef<[u8]> for OpaqueLivenessDataRef<'a> {
impl AsRef<[u8]> for OpaqueLivenessDataRef<'_> {
fn as_ref(&self) -> &[u8] {
self.0
}
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[toolchain]
channel = "nightly-2024-05-10"
channel = "nightly-2025-02-07"
components = ["rustfmt", "clippy"]
targets = ["wasm32-unknown-unknown"]
profile = "minimal"
Loading