@@ -436,17 +436,18 @@ interface Vm {
436
436
437
437
/// Gets the number of elements in the mapping at the given slot, for a given address.
438
438
#[ cheatcode( group = Evm , safety = Safe ) ]
439
- function getMappingLength( address target, bytes32 mappingSlot) external returns ( uint256 length) ;
439
+ function getMappingLength( address target, bytes32 mappingSlot) external view returns ( uint256 length) ;
440
440
441
441
/// Gets the elements at index idx of the mapping at the given slot, for a given address. The
442
442
/// index must be less than the length of the mapping (i.e. the number of keys in the mapping).
443
443
#[ cheatcode( group = Evm , safety = Safe ) ]
444
- function getMappingSlotAt( address target, bytes32 mappingSlot, uint256 idx) external returns ( bytes32 value) ;
444
+ function getMappingSlotAt( address target, bytes32 mappingSlot, uint256 idx) external view returns ( bytes32 value) ;
445
445
446
446
/// Gets the map key and parent of a mapping at a given slot, for a given address.
447
447
#[ cheatcode( group = Evm , safety = Safe ) ]
448
448
function getMappingKeyAndParentOf( address target, bytes32 elementSlot)
449
449
external
450
+ view
450
451
returns ( bool found, bytes32 key, bytes32 parent) ;
451
452
452
453
// -------- Block and Transaction Properties --------
@@ -866,6 +867,7 @@ interface Vm {
866
867
#[ cheatcode( group = Evm , safety = Safe ) ]
867
868
function eth_getLogs( uint256 fromBlock, uint256 toBlock, address target, bytes32[ ] calldata topics)
868
869
external
870
+ view
869
871
returns ( EthGetLogs [ ] memory logs) ;
870
872
871
873
// --- Behavior ---
0 commit comments