Skip to content

Commit

Permalink
make tsc happy
Browse files Browse the repository at this point in the history
  • Loading branch information
jochem-brouwer committed Sep 13, 2024
1 parent 552b9ed commit fb67671
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/vm/test/t8n/stateTracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ export class StateTracker {
}
const value = await this.vm.stateManager.getStorage(address, setLengthLeft(keyBytes, 32))
if (value.length === 0) {
delete outputAlloc[addressString].storage[storageKeyTrimmed]
delete outputAlloc[addressString].storage![storageKeyTrimmed]
// To be sure, also delete any keys which are left-padded to 32 bytes
delete outputAlloc[addressString].storage[key]
delete outputAlloc[addressString].storage![key]
continue
}
outputAlloc[addressString].storage[storageKeyTrimmed] = bytesToHex(value)
outputAlloc[addressString].storage![storageKeyTrimmed] = bytesToHex(value)
}
}
return outputAlloc
Expand Down

0 comments on commit fb67671

Please sign in to comment.