mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix(rpc): always include withdrawals in RPC (#1894)
This commit is contained in:
@ -155,7 +155,11 @@ where
|
||||
let block = self.client.block(block_id).to_rpc_result()?;
|
||||
|
||||
let mut res = Vec::new();
|
||||
if let Some(block) = block {
|
||||
if let Some(mut block) = block {
|
||||
// In RPC withdrawals are always present
|
||||
if block.withdrawals.is_none() {
|
||||
block.withdrawals = Some(vec![]);
|
||||
}
|
||||
block.encode(&mut res);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user