Skip to content

Commit

Permalink
add zero if No blob_gas_used/excess_blob_gas
Browse files Browse the repository at this point in the history
  • Loading branch information
olga24912 committed Jan 17, 2024
1 parent e22cdfb commit c5d7c9a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eth2near/eth_rpc_client/src/beacon_block_body_merkle_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,14 @@ impl ExecutionPayloadMerkleTree {
if tree_depth > 4 {
if let Ok(blob_gas_used) = execution_payload.blob_gas_used() {
leaves.push(blob_gas_used.tree_hash_root());
} else {
H256::zero()
}

if let Ok(excess_blob_gas) = execution_payload.excess_blob_gas() {
leaves.push(excess_blob_gas.tree_hash_root());
} else {
H256::zero()
}
}

Expand Down

0 comments on commit c5d7c9a

Please sign in to comment.