Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.starknet.io/llms.txt

Use this file to discover all available pages before exploring further.

Sets the block number to the provided value.

Signature

pub fn set_block_number(block_number: u64)

Arguments

block_number - The block number to set. After a call to set_block_number, starknet::get_execution_info().block_info.block_number will return the set value.