Skip to content

Commit

Permalink
return err
Browse files Browse the repository at this point in the history
  • Loading branch information
otherview committed Nov 13, 2023
1 parent bc3c43f commit fd1394b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/enclave/txpool/txpool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func applyGenesisState(storage *mockStorage, accounts []gethcommon.Address) (com
_ = statedb.IntermediateRoot(true)
commit, err := statedb.Commit(0, true)
if err != nil {
panic(err)
return common.StateRoot{}, err
}
return commit, nil
}

0 comments on commit fd1394b

Please sign in to comment.