From fd1394bfa644f4887f0b9badeaddc9b55d583875 Mon Sep 17 00:00:00 2001 From: otherview Date: Mon, 13 Nov 2023 16:50:37 +0000 Subject: [PATCH] return err --- go/enclave/txpool/txpool_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }