diff --git a/turbo/adapter/ethapi/api.go b/turbo/adapter/ethapi/api.go index 244b1b573..c690bd290 100644 --- a/turbo/adapter/ethapi/api.go +++ b/turbo/adapter/ethapi/api.go @@ -341,6 +341,11 @@ func RPCMarshalBlockExDeprecated(block *types.Block, inclTx bool, fullTx bool, b fields["withdrawals"] = block.Withdrawals() } + // Ensure that withdrawals is not null at all times. + if fields["withdrawals"] == nil { + fields["withdrawals"] = []*types.Withdrawal{} + } + return fields, nil }