Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex6323 committed Oct 9, 2023
1 parent 830ff47 commit 6306da5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions sdk/src/types/block/output/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -653,10 +653,10 @@ impl StateTransitionVerifier for AccountOutput {

impl WorkScore for AccountOutput {
fn work_score(&self, work_score_params: WorkScoreStructure) -> u32 {
let native_token_score = self.native_tokens().work_score(work_score_params);
let native_tokens_score = self.native_tokens().work_score(work_score_params);
let features_score = self.features().work_score(work_score_params);
let immutable_features_score = self.immutable_features().work_score(work_score_params);
work_score_params.output + native_token_score + features_score + immutable_features_score
work_score_params.output + native_tokens_score + features_score + immutable_features_score
}
}

Expand Down
4 changes: 2 additions & 2 deletions sdk/src/types/block/output/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,9 @@ impl BasicOutput {

impl WorkScore for BasicOutput {
fn work_score(&self, work_score_params: WorkScoreStructure) -> u32 {
let native_token_score = self.native_tokens().work_score(work_score_params);
let native_tokens_score = self.native_tokens().work_score(work_score_params);
let features_score = self.features().work_score(work_score_params);
work_score_params.output + native_token_score + features_score
work_score_params.output + native_tokens_score + features_score
}
}

Expand Down
4 changes: 2 additions & 2 deletions sdk/src/types/block/output/foundry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -600,15 +600,15 @@ impl StateTransitionVerifier for FoundryOutput {

impl WorkScore for FoundryOutput {
fn work_score(&self, work_score_params: WorkScoreStructure) -> u32 {
let native_token_score = self.native_tokens().work_score(work_score_params);
let native_tokens_score = self.native_tokens().work_score(work_score_params);
let features_score = self.features().work_score(work_score_params);
let immutable_features_score = self.immutable_features().work_score(work_score_params);
let token_scheme_score = self
.token_scheme()
.is_simple()
.then_some(work_score_params.native_token)
.unwrap_or(0);
work_score_params.output + native_token_score + features_score + immutable_features_score + token_scheme_score
work_score_params.output + native_tokens_score + features_score + immutable_features_score + token_scheme_score
}
}

Expand Down
4 changes: 2 additions & 2 deletions sdk/src/types/block/output/nft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -463,10 +463,10 @@ impl StateTransitionVerifier for NftOutput {

impl WorkScore for NftOutput {
fn work_score(&self, work_score_params: WorkScoreStructure) -> u32 {
let native_token_score = self.native_tokens().work_score(work_score_params);
let native_tokens_score = self.native_tokens().work_score(work_score_params);
let features_score = self.features().work_score(work_score_params);
let immutable_features_score = self.immutable_features().work_score(work_score_params);
work_score_params.output + native_token_score + features_score + immutable_features_score
work_score_params.output + native_tokens_score + features_score + immutable_features_score
}
}

Expand Down

0 comments on commit 6306da5

Please sign in to comment.