We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
cast run
1 parent f9ca6ec commit 94f82d5Copy full SHA for 94f82d5
crates/cast/bin/cmd/run.rs
@@ -127,7 +127,7 @@ impl RunArgs {
127
env.block.timestamp = block.timestamp.to_alloy();
128
env.block.coinbase = block.author.unwrap_or_default().to_alloy();
129
env.block.difficulty = block.difficulty.to_alloy();
130
- env.block.prevrandao = block.mix_hash.map(|h| h.to_alloy());
+ env.block.prevrandao = Some(block.mix_hash.map(|h| h.to_alloy()).unwrap_or_default());
131
env.block.basefee = block.base_fee_per_gas.unwrap_or_default().to_alloy();
132
env.block.gas_limit = block.gas_limit.to_alloy();
133
}
0 commit comments