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