add empty withdrawals obj

This commit is contained in:
Sina Mahmoodi 2024-03-29 13:36:45 +01:00
parent 7177f22222
commit 3daabda23f

View file

@ -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,
}
}