Skip to content

Commit a63dbe2

Browse files
authored
chore: minor changes (#10415)
1 parent fa55caa commit a63dbe2

File tree

11 files changed

+13
-13
lines changed

11 files changed

+13
-13
lines changed

.github/workflows/nextest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
run: pip --version && pip install vyper==0.4.0
7676

7777
- name: Forge RPC cache
78-
uses: actions/cache@v3
78+
uses: actions/cache@v4
7979
with:
8080
path: |
8181
~/.foundry/cache

crates/anvil/src/cmd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ pub struct AnvilEvmArgs {
438438

439439
/// Fetch state from a specific block number over a remote endpoint.
440440
///
441-
/// If a negative the the given value is subtracted from the `latest` block number.
441+
/// If negative, the given value is subtracted from the `latest` block number.
442442
///
443443
/// See --fork-url.
444444
#[arg(

crates/anvil/src/config.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1420,14 +1420,14 @@ async fn derive_block_and_transactions(
14201420
}
14211421
}
14221422

1423-
/// Fork delimiter used to specify which block or transaction to fork from
1423+
/// Fork delimiter used to specify which block or transaction to fork from.
14241424
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
14251425
pub enum ForkChoice {
14261426
/// Block number to fork from.
14271427
///
1428-
/// f a negative the the given value is subtracted from the `latest` block number.
1428+
/// If negative, the given value is subtracted from the `latest` block number.
14291429
Block(i128),
1430-
/// Transaction hash to fork from
1430+
/// Transaction hash to fork from.
14311431
Transaction(TxHash),
14321432
}
14331433

crates/anvil/tests/it/transaction.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ async fn test_tx_receipt() {
872872
let tx = WithOtherFields::new(tx);
873873
let tx = provider.send_transaction(tx).await.unwrap().get_receipt().await.unwrap();
874874

875-
// `to` field is none if it's a contract creation transaction: https://ethereum.org/developers/docs/apis/json-rpc/#eth_gettransactionreceipt
875+
// `to` field is none if it's a contract creation transaction: https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_gettransactionreceipt
876876
assert!(tx.to.is_none());
877877
assert!(tx.contract_address.is_some());
878878
}

crates/cast/src/cmd/find_block.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl FindBlockArgs {
4545
let mut high_block = last_block_num;
4646
let mut matching_block = None;
4747
while high_block > low_block && matching_block.is_none() {
48-
// Get timestamp of middle block (this approach approach to avoids overflow)
48+
// Get timestamp of middle block (this approach to avoids overflow)
4949
let high_minus_low_over_2 = high_block
5050
.checked_sub(low_block)
5151
.ok_or_else(|| eyre::eyre!("unexpected underflow"))

crates/cheatcodes/src/evm/prank.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub struct Prank {
1616
pub depth: u64,
1717
/// Whether the prank stops by itself after the next call
1818
pub single_call: bool,
19-
/// Whether the prank should be be applied to delegate call
19+
/// Whether the prank should be applied to delegate call
2020
pub delegate_call: bool,
2121
/// Whether the prank has been used yet (false if unused)
2222
pub used: bool,

crates/chisel/src/executor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ impl Type {
10361036
}
10371037

10381038
// Check if the first element of the custom type is a known contract. If it is, begin
1039-
// our recursion on on that contract's definitions.
1039+
// our recursion on that contract's definitions.
10401040
let name = custom_type.last().unwrap();
10411041
let contract = intermediate.intermediate_contracts.get(name);
10421042
if contract.is_some() {

crates/doc/src/writer/buf_writer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ impl BufWriter {
104104
self.write_list_item(&link.as_doc()?, depth)
105105
}
106106

107-
/// Writes a solidity code block block to the buffer.
107+
/// Writes a solidity code block to the buffer.
108108
pub fn write_code(&mut self, code: &str) -> fmt::Result {
109109
writeln!(self.buf, "{}", Markdown::CodeBlock(SOLIDITY, code))
110110
}

crates/fmt/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ To insert the comments into the appropriate areas, strings get converted to chun
5353
before being written to the buffer. A chunk is any string that cannot be split by
5454
whitespace. A chunk also carries with it the surrounding comment information. Thereby
5555
when writing the chunk the comments can be added before and after the chunk as well
56-
as any any whitespace surrounding.
56+
as any whitespace surrounding.
5757

5858
To construct a chunk, the string and the location of the string is given to the
5959
Formatter and the pre-parsed comments before the start and end of the string are

crates/fmt/src/formatter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3252,7 +3252,7 @@ impl<W: Write> Visitor for Formatter<'_, W> {
32523252
let is_constructor = self.context.is_constructor_function();
32533253
// we can't make any decisions here regarding trailing `()` because we'd need to
32543254
// find out if the `base` is a solidity modifier or an
3255-
// interface/contract therefore we we its raw content.
3255+
// interface/contract therefore we use its raw content.
32563256

32573257
// we can however check if the contract `is` the `base`, this however also does
32583258
// not cover all cases

crates/forge/tests/it/core.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ async fn test_trace() {
752752
assert_eq!(
753753
execution_traces.count(),
754754
1,
755-
"Test {test_name} did not not have exactly 1 execution trace."
755+
"Test {test_name} did not have exactly 1 execution trace."
756756
);
757757
}
758758
}

0 commit comments

Comments
 (0)