Skip to content

Commit d67e375

Browse files
committed
feat(10027-cheatcode-mutability-tags): noaccesslist and readcallers are external view
1 parent a2dc418 commit d67e375

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

crates/cheatcodes/assets/cheatcodes.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cheatcodes/spec/src/vm.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ interface Vm {
576576

577577
/// Utility cheatcode to remove any EIP-2930 access list set by `accessList` cheatcode.
578578
#[cheatcode(group = Evm, safety = Unsafe)]
579-
function noAccessList() external;
579+
function noAccessList() external view;
580580

581581
/// Utility cheatcode to mark specific storage slot as warm, simulating a prior read.
582582
#[cheatcode(group = Evm, safety = Unsafe)]
@@ -700,7 +700,7 @@ interface Vm {
700700

701701
/// Reads the current `msg.sender` and `tx.origin` from state and reports if there is any active caller modification.
702702
#[cheatcode(group = Evm, safety = Unsafe)]
703-
function readCallers() external returns (CallerMode callerMode, address msgSender, address txOrigin);
703+
function readCallers() external view returns (CallerMode callerMode, address msgSender, address txOrigin);
704704

705705
// ----- Arbitrary Snapshots -----
706706

docs/dev/cheatcode-mutability-review.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ Mark `view`:
4949
- [ ] `getNonce_1`: `getNonce(address,uint256,uint256,uint256)`
5050
- [ ] `getRecordedLogs`: `getRecordedLogs()`
5151
- [ ] `getWallets`: `getWallets()`
52-
- [ ] `noAccessList`: `noAccessList()`
53-
- [ ] `readCallers`: `readCallers()`
52+
- [x] `noAccessList`: `noAccessList()` _suggested: `view`_
53+
- [x] `readCallers`: `readCallers()` _suggested: `view`_
5454

5555
---
5656

0 commit comments

Comments
 (0)