Skip to content

Commit

Permalink
chore: linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
therealdannzor committed Sep 4, 2024
1 parent 8f0d90f commit 6282dd6
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions dan_layer/engine_types/src/substate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,13 @@ use tari_bor::{decode, decode_exact, encode, BorError};
use tari_common_types::types::FixedHash;
use tari_template_lib::{
models::{
ComponentAddress, NonFungibleAddress, NonFungibleIndexAddress, ObjectKey, ResourceAddress,
UnclaimedConfidentialOutputAddress, VaultId,
ComponentAddress,
NonFungibleAddress,
NonFungibleIndexAddress,
ObjectKey,
ResourceAddress,
UnclaimedConfidentialOutputAddress,
VaultId,
},
prelude::{NonFungibleId, PUBLIC_IDENTITY_RESOURCE_ADDRESS},
Hash,
Expand Down Expand Up @@ -147,14 +152,14 @@ impl SubstateId {
/// Returns true for any substate that has is "versionable" i.e. can have a version > 0, otherwise false.
pub fn is_versioned(&self) -> bool {
match self {
SubstateId::Component(_)
| SubstateId::Resource(_)
| SubstateId::Vault(_)
| SubstateId::NonFungibleIndex(_)
| SubstateId::NonFungible(_) => true,
SubstateId::UnclaimedConfidentialOutput(_)
| SubstateId::TransactionReceipt(_)
| SubstateId::FeeClaim(_) => false,
SubstateId::Component(_) |
SubstateId::Resource(_) |
SubstateId::Vault(_) |
SubstateId::NonFungibleIndex(_) |
SubstateId::NonFungible(_) => true,
SubstateId::UnclaimedConfidentialOutput(_) |
SubstateId::TransactionReceipt(_) |
SubstateId::FeeClaim(_) => false,
}
}

Expand Down

0 comments on commit 6282dd6

Please sign in to comment.