@@ -47,13 +47,10 @@ type account struct {
47
47
Nonce uint64 `json:"nonce,omitempty"`
48
48
Storage map [common.Hash ]common.Hash `json:"storage,omitempty"`
49
49
empty bool
50
-
51
- ArbitrumStorage map [common.Hash ]common.Hash `json:"arbitrumStorage,omitempty"`
52
- arbStorageKeyMap map [common.Hash ]common.Hash
53
50
}
54
51
55
52
func (a * account ) exists () bool {
56
- return a .Nonce > 0 || len (a .Code ) > 0 || len (a .Storage ) > 0 || (a .Balance != nil && a .Balance .Sign () != 0 ) || len ( a . ArbitrumStorage ) > 0
53
+ return a .Nonce > 0 || len (a .Code ) > 0 || len (a .Storage ) > 0 || (a .Balance != nil && a .Balance .Sign () != 0 )
57
54
}
58
55
59
56
type accountMarshaling struct {
@@ -214,7 +211,6 @@ func (t *prestateTracer) processDiffState() {
214
211
}
215
212
modified := false
216
213
postAccount := & account {Storage : make (map [common.Hash ]common.Hash )}
217
- postAccount .ArbitrumStorage = make (map [common.Hash ]common.Hash )
218
214
newBalance := t .env .StateDB .GetBalance (addr ).ToBig ()
219
215
newNonce := t .env .StateDB .GetNonce (addr )
220
216
newCode := t .env .StateDB .GetCode (addr )
@@ -250,24 +246,6 @@ func (t *prestateTracer) processDiffState() {
250
246
}
251
247
}
252
248
253
- for key , val := range state .ArbitrumStorage {
254
- // don't include the empty slot
255
- if val == (common.Hash {}) {
256
- delete (t .pre [addr ].ArbitrumStorage , key )
257
- }
258
-
259
- newVal := t .env .StateDB .GetState (types .ArbosStateAddress , state .arbStorageKeyMap [key ])
260
- if val == newVal {
261
- // Omit unchanged slots
262
- delete (t .pre [addr ].ArbitrumStorage , key )
263
- } else {
264
- modified = true
265
- if newVal != (common.Hash {}) {
266
- postAccount .ArbitrumStorage [key ] = newVal
267
- }
268
- }
269
- }
270
-
271
249
if modified {
272
250
t .post [addr ] = postAccount
273
251
} else {
@@ -285,12 +263,10 @@ func (t *prestateTracer) lookupAccount(addr common.Address) {
285
263
}
286
264
287
265
acc := & account {
288
- Balance : t .env .StateDB .GetBalance (addr ).ToBig (),
289
- Nonce : t .env .StateDB .GetNonce (addr ),
290
- Code : t .env .StateDB .GetCode (addr ),
291
- Storage : make (map [common.Hash ]common.Hash ),
292
- ArbitrumStorage : make (map [common.Hash ]common.Hash ),
293
- arbStorageKeyMap : make (map [common.Hash ]common.Hash ),
266
+ Balance : t .env .StateDB .GetBalance (addr ).ToBig (),
267
+ Nonce : t .env .StateDB .GetNonce (addr ),
268
+ Code : t .env .StateDB .GetCode (addr ),
269
+ Storage : make (map [common.Hash ]common.Hash ),
294
270
}
295
271
if ! acc .exists () {
296
272
acc .empty = true
@@ -307,11 +283,3 @@ func (t *prestateTracer) lookupStorage(addr common.Address, key common.Hash) {
307
283
}
308
284
t .pre [addr ].Storage [key ] = t .env .StateDB .GetState (addr , key )
309
285
}
310
-
311
- func (t * prestateTracer ) lookupArbitrumStorage (addr common.Address , key , mappedKey common.Hash ) {
312
- if _ , ok := t .pre [addr ].ArbitrumStorage [key ]; ok {
313
- return
314
- }
315
- t .pre [addr ].ArbitrumStorage [key ] = t .env .StateDB .GetState (types .ArbosStateAddress , mappedKey )
316
- t .pre [addr ].arbStorageKeyMap [key ] = mappedKey
317
- }
0 commit comments