From 10add4825f7a252f76eb4b9e4610fffc7608a55c Mon Sep 17 00:00:00 2001 From: Eugene Kim Date: Mon, 9 Sep 2019 16:40:43 -0700 Subject: [PATCH] Make Body UT to use factory function and setters That is, instead of direct field initialization, which is no longer possible. --- core/rawdb/accessors_chain_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/rawdb/accessors_chain_test.go b/core/rawdb/accessors_chain_test.go index 3b767f600..637ee830c 100644 --- a/core/rawdb/accessors_chain_test.go +++ b/core/rawdb/accessors_chain_test.go @@ -74,7 +74,7 @@ func TestBodyStorage(t *testing.T) { db := ethdb.NewMemDatabase() // Create a test body to move around the database and make sure it's really new - body := &types.Body{Uncles: []*block.Header{blockfactory.NewTestHeader().With().Extra([]byte("test header")).Header()}} + body := types.NewTestBody().With().Uncles([]*block.Header{blockfactory.NewTestHeader().With().Extra([]byte("test header")).Header()}).Body() hasher := sha3.NewLegacyKeccak256() rlp.Encode(hasher, body)