@@ -1798,7 +1798,7 @@ impl Cheatcodes {
1798
1798
}
1799
1799
1800
1800
#[ cold]
1801
- fn meter_gas_end ( & mut self , interpreter : & mut Interpreter ) {
1801
+ fn meter_gas_end ( & mut self , interpreter : & Interpreter ) {
1802
1802
// Remove recorded gas if we exit frame.
1803
1803
if will_exit ( interpreter. instruction_result ) {
1804
1804
self . gas_metering . paused_frames . pop ( ) ;
@@ -1812,7 +1812,7 @@ impl Cheatcodes {
1812
1812
}
1813
1813
1814
1814
#[ cold]
1815
- fn meter_gas_check ( & mut self , interpreter : & mut Interpreter ) {
1815
+ fn meter_gas_check ( & self , interpreter : & mut Interpreter ) {
1816
1816
if will_exit ( interpreter. instruction_result ) {
1817
1817
// Reset gas if spent is less than refunded.
1818
1818
// This can happen if gas was paused / resumed or reset.
@@ -1833,7 +1833,7 @@ impl Cheatcodes {
1833
1833
/// cache) from mapped source address to the target address.
1834
1834
/// - generates arbitrary value and saves it in target address storage.
1835
1835
#[ cold]
1836
- fn arbitrary_storage_end ( & mut self , interpreter : & mut Interpreter , ecx : Ecx ) {
1836
+ fn arbitrary_storage_end ( & mut self , interpreter : & Interpreter , ecx : Ecx ) {
1837
1837
let ( key, target_address) = if interpreter. current_opcode ( ) == op:: SLOAD {
1838
1838
( try_or_return ! ( interpreter. stack( ) . peek( 0 ) ) , interpreter. contract ( ) . target_address )
1839
1839
} else {
@@ -1867,7 +1867,7 @@ impl Cheatcodes {
1867
1867
1868
1868
/// Records storage slots reads and writes.
1869
1869
#[ cold]
1870
- fn record_accesses ( & mut self , interpreter : & mut Interpreter ) {
1870
+ fn record_accesses ( & mut self , interpreter : & Interpreter ) {
1871
1871
let Some ( access) = & mut self . accesses else { return } ;
1872
1872
match interpreter. current_opcode ( ) {
1873
1873
op:: SLOAD => {
@@ -1883,7 +1883,7 @@ impl Cheatcodes {
1883
1883
}
1884
1884
1885
1885
#[ cold]
1886
- fn record_state_diffs ( & mut self , interpreter : & mut Interpreter , ecx : Ecx ) {
1886
+ fn record_state_diffs ( & mut self , interpreter : & Interpreter , ecx : Ecx ) {
1887
1887
let Some ( account_accesses) = & mut self . recorded_account_diffs_stack else { return } ;
1888
1888
match interpreter. current_opcode ( ) {
1889
1889
op:: SELFDESTRUCT => {
0 commit comments