Skip to content

Commit

Permalink
Correct the StandardDeployHashesTranslator
Browse files Browse the repository at this point in the history
  • Loading branch information
jacek-casper committed May 30, 2024
1 parent 6115397 commit 8992001
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions types/src/legacy_sse_data/translate_deploy_hashes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ pub struct TransferDeployHashesTranslator;
impl DeployHashTranslator for StandardDeployHashesTranslator {
fn translate(&self, block_body_v2: &casper_types::BlockBodyV2) -> Vec<DeployHash> {
block_body_v2
.all_transactions()
.small()
.chain(block_body_v2.medium())
.chain(block_body_v2.large())
.filter_map(|el| match el {
&TransactionHash::Deploy(deploy_hash) => Some(deploy_hash),
TransactionHash::Deploy(deploy_hash) => Some(deploy_hash),
TransactionHash::V1(_) => None,
})
.collect()
Expand Down

0 comments on commit 8992001

Please sign in to comment.