Skip to content

Commit 575bf62

Browse files
authored
chore: aggregate PRs (#11310)
This PR aggregates changes from the following PRs: - Closes #11290 by @\prestoalvarez - Closes #11309 by @\Eth161dm
1 parent 6a6a113 commit 575bf62

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

crates/anvil/src/config.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1446,7 +1446,9 @@ async fn derive_block_and_transactions(
14461446
.get_transaction_by_hash(transaction_hash.0.into())
14471447
.await?
14481448
.ok_or_else(|| eyre::eyre!("failed to get fork transaction by hash"))?;
1449-
let transaction_block_number = transaction.block_number.unwrap();
1449+
let transaction_block_number = transaction.block_number.ok_or_else(|| {
1450+
eyre::eyre!("fork transaction is not mined yet (no block number)")
1451+
})?;
14501452

14511453
// Get the block pertaining to the fork transaction
14521454
let transaction_block = provider

crates/evm/core/src/constants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub const CHEATCODE_CONTRACT_HASH: B256 =
1717

1818
/// The Hardhat console address.
1919
///
20-
/// See: <https://github.com/nomiclabs/hardhat/blob/master/packages/hardhat-core/console.sol>
20+
/// See: <https://github.com/NomicFoundation/hardhat/blob/main/v-next/hardhat/console.sol>
2121
pub const HARDHAT_CONSOLE_ADDRESS: Address = address!("0x000000000000000000636F6e736F6c652e6c6f67");
2222

2323
/// Stores the caller address to be used as *sender* account for:

0 commit comments

Comments
 (0)