mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
eth: simplify code
This commit is contained in:
parent
93c541ad56
commit
1d8b0b5096
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue