Skip to content

Commit

Permalink
eth/catalyst: remove variable in tx conversion loop (#29076)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuiweixie authored Feb 26, 2024
1 parent 821d702 commit c1f59b9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions eth/catalyst/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c1f59b9

Please sign in to comment.