eth: simplify code

This commit is contained in:
cuiweixie 2024-02-25 21:22:30 +08:00
parent 93c541ad56
commit 1d8b0b5096

View file

@ -879,8 +879,7 @@ func getBody(block *types.Block) *engine.ExecutionPayloadBodyV1 {
) )
for j, tx := range body.Transactions { for j, tx := range body.Transactions {
data, _ := tx.MarshalBinary() txs[j], _ = tx.MarshalBinary()
txs[j] = hexutil.Bytes(data)
} }
// Post-shanghai withdrawals MUST be set to empty slice instead of nil // Post-shanghai withdrawals MUST be set to empty slice instead of nil