mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
add empty withdrawals obj
This commit is contained in:
parent
7177f22222
commit
3daabda23f
1 changed files with 13 additions and 10 deletions
|
|
@ -61,6 +61,7 @@ type simBlockResult struct {
|
|||
FeeRecipient common.Address `json:"feeRecipient"`
|
||||
BaseFee *hexutil.Big `json:"baseFeePerGas"`
|
||||
PrevRandao common.Hash `json:"prevRandao"`
|
||||
Withdrawals types.Withdrawals `json:"withdrawals"`
|
||||
Calls []simCallResult `json:"calls"`
|
||||
}
|
||||
|
||||
|
|
@ -74,6 +75,8 @@ func simBlockResultFromHeader(header *types.Header, callResults []simCallResult)
|
|||
FeeRecipient: header.Coinbase,
|
||||
BaseFee: (*hexutil.Big)(header.BaseFee),
|
||||
PrevRandao: header.MixDigest,
|
||||
// Withdrawals will be always empty in the context of a simulated block.
|
||||
Withdrawals: make(types.Withdrawals, 0),
|
||||
Calls: callResults,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue