From bc6eb038f75cd6757f085772f2939f4b3d445c72 Mon Sep 17 00:00:00 2001 From: Jerry Date: Mon, 30 Oct 2023 14:01:57 -0700 Subject: [PATCH] Set withdraw to nil when building blocks for integration tests --- tests/bor/helper.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/bor/helper.go b/tests/bor/helper.go index ba9b687d25..dfde4baed8 100644 --- a/tests/bor/helper.go +++ b/tests/bor/helper.go @@ -220,7 +220,11 @@ func buildNextBlock(t *testing.T, _bor consensus.Engine, chain *core.BlockChain, ctx := context.Background() // Finalize and seal the block - block, _ := _bor.FinalizeAndAssemble(ctx, chain, b.header, state, b.txs, nil, b.receipts, []*types.Withdrawal{}) + block, err := _bor.FinalizeAndAssemble(ctx, chain, b.header, state, b.txs, nil, b.receipts, nil) + + if err != nil { + panic(fmt.Sprintf("error finalizing block: %v", err)) + } // Write state changes to db root, err := state.Commit(chain.Config().IsEIP158(b.header.Number))