foundry-rs / starknet-foundry

Blazing fast toolkit for developing Starknet contracts.
https://foundry-rs.github.io/starknet-foundry/
MIT License
324 stars 176 forks source link

feat: add `cheat_block_hash` #2399

Closed enitrat closed 1 day ago

enitrat commented 2 months ago

Which component is your feature related to?

Forge

Feature Request

Add a cheatcode to cheat the block hash.

piotmag769 commented 2 months ago

Is there even a syscall to get it though?

enitrat commented 2 months ago

yes get_block_hash_syscall

cptartur commented 1 day ago

Duplicating #684