From 1d8b0b5096875ad976bb5f7a08ffb31eb9aaa7ee Mon Sep 17 00:00:00 2001 From: cuiweixie Date: Sun, 25 Feb 2024 21:22:30 +0800 Subject: [PATCH] eth: simplify code --- eth/catalyst/api.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eth/catalyst/api.go b/eth/catalyst/api.go index d16d37d3284c..58566a47fc6c 100644 --- a/eth/catalyst/api.go +++ b/eth/catalyst/api.go @@ -879,8 +879,7 @@ func getBody(block *types.Block) *engine.ExecutionPayloadBodyV1 { ) for j, tx := range body.Transactions { - data, _ := tx.MarshalBinary() - txs[j] = hexutil.Bytes(data) + txs[j], _ = tx.MarshalBinary() } // Post-shanghai withdrawals MUST be set to empty slice instead of nil