Make Body UT to use factory function and setters

That is, instead of direct field initialization, which is no longer
possible.
pull/1546/head
Eugene Kim 5 years ago
parent ad0434aee4
commit 10add4825f
  1. 2
      core/rawdb/accessors_chain_test.go

@ -74,7 +74,7 @@ func TestBodyStorage(t *testing.T) {
db := ethdb.NewMemDatabase() db := ethdb.NewMemDatabase()
// Create a test body to move around the database and make sure it's really new // 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() hasher := sha3.NewLegacyKeccak256()
rlp.Encode(hasher, body) rlp.Encode(hasher, body)

Loading…
Cancel
Save