diff --git a/go/enclave/txpool/txpool_test.go b/go/enclave/txpool/txpool_test.go index 929709fbf8..5e6823ff29 100644 --- a/go/enclave/txpool/txpool_test.go +++ b/go/enclave/txpool/txpool_test.go @@ -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 }