File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1446,7 +1446,9 @@ async fn derive_block_and_transactions(
1446
1446
. get_transaction_by_hash ( transaction_hash. 0 . into ( ) )
1447
1447
. await ?
1448
1448
. 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
+ } ) ?;
1450
1452
1451
1453
// Get the block pertaining to the fork transaction
1452
1454
let transaction_block = provider
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ pub const CHEATCODE_CONTRACT_HASH: B256 =
17
17
18
18
/// The Hardhat console address.
19
19
///
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>
21
21
pub const HARDHAT_CONSOLE_ADDRESS : Address = address ! ( "0x000000000000000000636F6e736F6c652e6c6f67" ) ;
22
22
23
23
/// Stores the caller address to be used as *sender* account for:
You can’t perform that action at this time.
0 commit comments