Skip to content

Commit 94f82d5

Browse files
authored
fix prevrando on cast run (#6011)
1 parent f9ca6ec commit 94f82d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/cast/bin/cmd/run.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ impl RunArgs {
127127
env.block.timestamp = block.timestamp.to_alloy();
128128
env.block.coinbase = block.author.unwrap_or_default().to_alloy();
129129
env.block.difficulty = block.difficulty.to_alloy();
130-
env.block.prevrandao = block.mix_hash.map(|h| h.to_alloy());
130+
env.block.prevrandao = Some(block.mix_hash.map(|h| h.to_alloy()).unwrap_or_default());
131131
env.block.basefee = block.base_fee_per_gas.unwrap_or_default().to_alloy();
132132
env.block.gas_limit = block.gas_limit.to_alloy();
133133
}

0 commit comments

Comments
 (0)