2626 return;
2727 }
2828
29- let localValue = storedValue;
30- localValue = localValue + 1;
29+ let localValue = storedValue + 1;
3130 storedValue = localValue;
3231}
3332` }]}
@@ -163,7 +162,7 @@ code {
163162 mnemonic: " SLOAD"
164163 },
165164 context : ({ findSourceRange }) => ({
166- code: findSourceRange (" let localValue = storedValue; " ),
165+ code: findSourceRange (" storedValue " , { after: " let localValue " } ),
167166 variables: [{
168167 identifier: " storedValue" ,
169168 type: {
@@ -175,17 +174,6 @@ code {
175174 slot: 0
176175 },
177176 declaration: findSourceRange (" [0] storedValue: uint256" )
178- }, {
179- identifier: " localValue" ,
180- type: {
181- kind: " uint" ,
182- bits: 256
183- },
184- pointer: {
185- location: " stack" ,
186- slot: 0
187- },
188- declaration: findSourceRange (" let localValue" )
189177 }],
190178 })
191179 },
@@ -207,17 +195,6 @@ code {
207195 slot: 0
208196 },
209197 declaration: findSourceRange (" [0] storedValue: uint256" )
210- }, {
211- identifier: " localValue" ,
212- type: {
213- kind: " uint" ,
214- bits: 256
215- },
216- pointer: {
217- location: " stack" ,
218- slot: 1
219- },
220- declaration: findSourceRange (" let localValue" )
221198 }],
222199 })
223200 },
@@ -226,7 +203,7 @@ code {
226203 mnemonic: " ADD"
227204 },
228205 context : ({ findSourceRange }) => ({
229- code: findSourceRange (" localValue = localValue + 1;" ),
206+ code: findSourceRange (" let localValue = storedValue + 1;" ),
230207 variables: [{
231208 identifier: " storedValue" ,
232209 type: {
0 commit comments