Skip to content

Commit

Permalink
removed target argument in stop global cheatcodes (#2579)
Browse files Browse the repository at this point in the history
<!-- Reference any GitHub issues resolved by this PR -->

Closes #

## Introduced changes

<!-- A brief description of the changes -->

- docs on cheatcodes usage is more accurate

## Checklist

<!-- Make sure all of these are complete -->

- [x] Linked relevant issue
- [x] Updated relevant documentation
- [x] Added relevant tests
- [x] Performed self-review of the code
- [x] Added changes to `CHANGELOG.md`

---------

Co-authored-by: Greed <greed@nobody.com>
  • Loading branch information
0xGreed and Greed authored Oct 15, 2024
1 parent 7778925 commit 417be74
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docs/src/appendix/cheatcodes/account_contract_address.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ Changes the address of an account which the transaction originates from, for the
Cancels the `cheat_account_contract_address` / `start_cheat_account_contract_address` for the given target.

## `stop_cheat_account_contract_address_global`
> `fn stop_cheat_account_contract_address_global(target: ContractAddress)`
> `fn stop_cheat_account_contract_address_global()`
Cancels the `start_cheat_account_contract_address_global`.
2 changes: 1 addition & 1 deletion docs/src/appendix/cheatcodes/account_deployment_data.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ Changes the transaction account deployment data for the given target.
Cancels the `cheat_account_deployment_data` / `start_cheat_account_deployment_data` for the given target.

## `stop_cheat_account_deployment_data_global`
> `fn stop_cheat_account_deployment_data_global(target: ContractAddress)`
> `fn stop_cheat_account_deployment_data_global()`
Cancels the `start_cheat_account_deployment_data_global`.
2 changes: 1 addition & 1 deletion docs/src/appendix/cheatcodes/chain_id.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ Changes the transaction chain_id for the given target.
Cancels the `cheat_chain_id` / `start_cheat_chain_id` for the given target.

## `stop_cheat_chain_id_global`
> `fn stop_cheat_chain_id_global(target: ContractAddress)`
> `fn stop_cheat_chain_id_global()`
Cancels the `start_cheat_chain_id_global`.
2 changes: 1 addition & 1 deletion docs/src/appendix/cheatcodes/fee_data_availability_mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ Changes the transaction fee data availability mode for the given target.
Cancels the `cheat_fee_data_availability_mode` / `start_cheat_fee_data_availability_mode` for the given target.

## `stop_cheat_fee_data_availability_mode_global`
> `fn stop_cheat_fee_data_availability_mode_global(target: ContractAddress)`
> `fn stop_cheat_fee_data_availability_mode_global()`
Cancels the `start_cheat_fee_data_availability_mode_global`.
2 changes: 1 addition & 1 deletion docs/src/appendix/cheatcodes/max_fee.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ Changes the transaction max fee for the given target.
Cancels the `cheat_max_fee` / `start_cheat_max_fee` for the given target.

## `stop_cheat_max_fee_global`
> `fn stop_cheat_max_fee_global(target: ContractAddress)`
> `fn stop_cheat_max_fee_global()`
Cancels the `start_cheat_max_fee_global`.
2 changes: 1 addition & 1 deletion docs/src/appendix/cheatcodes/nonce.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ Changes the transaction nonce for the given target.
Cancels the `cheat_nonce` / `start_cheat_nonce` for the given target.

## `stop_cheat_nonce_global`
> `fn stop_cheat_nonce_global(target: ContractAddress)`
> `fn stop_cheat_nonce_global()`
Cancels the `start_cheat_nonce_global`.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ Changes the transaction nonce data availability mode for the given target.
Cancels the `cheat_nonce_data_availability_mode` / `start_cheat_nonce_data_availability_mode` for the given target.

## `stop_cheat_nonce_data_availability_mode_global`
> `fn stop_cheat_nonce_data_availability_mode_global(target: ContractAddress)`
> `fn stop_cheat_nonce_data_availability_mode_global()`
Cancels the `start_cheat_nonce_data_availability_mode_global`.
2 changes: 1 addition & 1 deletion docs/src/appendix/cheatcodes/paymaster_data.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ Changes the transaction paymaster data for the given target.
Cancels the `cheat_paymaster_data` / `start_cheat_paymaster_data` for the given target.

## `stop_cheat_paymaster_data_global`
> `fn stop_cheat_paymaster_data_global(target: ContractAddress)`
> `fn stop_cheat_paymaster_data_global()`
Cancels the `start_cheat_paymaster_data_global`.
2 changes: 1 addition & 1 deletion docs/src/appendix/cheatcodes/resource_bounds.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ Changes the transaction resource bounds for the given target.
Cancels the `cheat_resource_bounds` / `start_cheat_resource_bounds` for the given target.

## `stop_cheat_resource_bounds_global`
> `fn stop_cheat_resource_bounds_global(target: ContractAddress)`
> `fn stop_cheat_resource_bounds_global()`
Cancels the `start_cheat_resource_bounds_global`.
2 changes: 1 addition & 1 deletion docs/src/appendix/cheatcodes/sequencer_address.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ Changes the sequencer address for the given target.
Cancels the `cheat_sequencer_address` / `start_cheat_sequencer_address` for the given target.

## `stop_cheat_sequencer_address_global`
> `fn stop_cheat_sequencer_address_global(target: ContractAddress)`
> `fn stop_cheat_sequencer_address_global()`
Cancels the `start_cheat_sequencer_address_global`.
2 changes: 1 addition & 1 deletion docs/src/appendix/cheatcodes/signature.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ Changes the transaction signature for the given target.
Cancels the `cheat_signature` / `start_cheat_signature` for the given target.

## `stop_cheat_signature_global`
> `fn stop_cheat_signature_global(target: ContractAddress)`
> `fn stop_cheat_signature_global()`
Cancels the `start_cheat_signature_global`.
2 changes: 1 addition & 1 deletion docs/src/appendix/cheatcodes/tip.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ Changes the transaction tip for the given target.
Cancels the `cheat_tip` / `start_cheat_tip` for the given target.

## `stop_cheat_tip_global`
> `fn stop_cheat_tip_global(target: ContractAddress)`
> `fn stop_cheat_tip_global()`
Cancels the `start_cheat_tip_global`.
2 changes: 1 addition & 1 deletion docs/src/appendix/cheatcodes/transaction_hash.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ Changes the transaction hash for the given target.
Cancels the `cheat_transaction_hash` / `start_cheat_transaction_hash` for the given target.

## `stop_cheat_transaction_hash_global`
> `fn stop_cheat_transaction_hash_global(target: ContractAddress)`
> `fn stop_cheat_transaction_hash_global()`
Cancels the `start_cheat_transaction_hash_global`.
2 changes: 1 addition & 1 deletion docs/src/appendix/cheatcodes/transaction_version.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ Changes the transaction version for the given target.
Cancels the `cheat_transaction_version` / `start_cheat_transaction_version` for the given target.

## `stop_cheat_transaction_version_global`
> `fn stop_cheat_transaction_version_global(target: ContractAddress)`
> `fn stop_cheat_transaction_version_global()`
Cancels the `start_cheat_transaction_version_global`.

0 comments on commit 417be74

Please sign in to comment.