Skip to content

Commit

Permalink
statemanager: remove non null asesertion
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrocheleau committed Aug 9, 2024
1 parent 905a52e commit f30288a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/statemanager/src/statelessVerkleStateManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ export class StatelessVerkleStateManager implements StateManagerInterface {
// switch to false if postVerify fails
let postFailures = 0

for (const accessedState of this.accessWitness!.accesses()) {
for (const accessedState of this.accessWitness?.accesses() ?? []) {
const { address, type } = accessedState
let extraMeta = ''
if (accessedState.type === AccessedStateType.Code) {
Expand Down

0 comments on commit f30288a

Please sign in to comment.