Skip to content

Commit

Permalink
Set withdraw to nil when building blocks for integration tests (#1066)
Browse files Browse the repository at this point in the history
  • Loading branch information
cffls authored Oct 31, 2023
1 parent 5da60c2 commit 4896ab2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/bor/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Check warning on line 226 in tests/bor/helper.go

View check run for this annotation

Codecov / codecov/patch

tests/bor/helper.go#L226

Added line #L226 was not covered by tests
}

// Write state changes to db
root, err := state.Commit(chain.Config().IsEIP158(b.header.Number))
Expand Down

0 comments on commit 4896ab2

Please sign in to comment.