-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs: Fixed the Cheatcodes Error In Docs #3133
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Each of edited docs should also contain these changes.
@@ -3,7 +3,7 @@ | |||
Cheatcodes modifying `block_number`: | |||
|
|||
## `cheat_block_number` | |||
> `fn cheat_block_number(target: ContractAddress, block_number: u64, span: CheatSpan)` | |||
> `fn cheat_block_number(contract_address: ContractAddress, block_number: u64, span: CheatSpan)` | |||
|
|||
Changes the block number for the given target and span. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes the block number for the given target and span. | |
Changes the block number for the given contract address and span. |
@@ -13,12 +13,12 @@ Changes the block number for the given target and span. | |||
Changes the block number for all targets. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes the block number for all targets. | |
Changes the block number for all contracts. |
@@ -13,12 +13,12 @@ Changes the block number for the given target and span. | |||
Changes the block number for all targets. | |||
|
|||
## `start_cheat_block_number` | |||
> `fn start_cheat_block_number(target: ContractAddress, block_number: u64)` | |||
> `fn start_cheat_block_number(contract_address: ContractAddress, block_number: u64)` | |||
|
|||
Changes the block number for the given target. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes the block number for the given target. | |
Changes the block number for the given contract address. |
|
||
Changes the block number for the given target. | ||
|
||
## `stop_cheat_block_number` | ||
> `fn stop_cheat_block_number(target: ContractAddress)` | ||
> `fn stop_cheat_block_number(contract_address: ContractAddress)` | ||
|
||
Cancels the `cheat_block_number` / `start_cheat_block_number` for the given target. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cancels the `cheat_block_number` / `start_cheat_block_number` for the given target. | |
Cancels the `cheat_block_number` / `start_cheat_block_number` for the given contract address. |
Closes #3106
Introduced changes
Updated
target: ContractAddress
in cheatcodes section of docs tocontract_address: ContractAddress
, making sure to do this where it was appropriate by looking into the snforge_stdChecklist
CHANGELOG.md