diff --git a/eth/protocols/eth/handler_test.go b/eth/protocols/eth/handler_test.go index d1a252b7cf..c001ec07ce 100644 --- a/eth/protocols/eth/handler_test.go +++ b/eth/protocols/eth/handler_test.go @@ -367,11 +367,7 @@ func TestGetBlockBodies68(t *testing.T) { func testGetBlockBodies(t *testing.T, protocol uint) { gen := func(n int, g *core.BlockGen) { if n%2 == 0 { - w := &types.Withdrawal{ - Address: common.Address{0xaa}, - Amount: 42, - } - g.AddWithdrawal(w) + g.AddWithdrawal(&types.Withdrawal{}) } }