Skip to content

Commit

Permalink
chore(dpp): fix some linter warn to trigger ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Nov 12, 2024
1 parent efe95f0 commit cb28ec2
Showing 1 changed file with 11 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,18 @@ impl IdentityCreditTransferTransitionMethodsV0 for IdentityCreditTransferTransit
);
}
}
None => {
let key = identity
.get_first_public_key_matching(
Purpose::TRANSFER,
SecurityLevel::full_range().into(),
KeyType::all_key_types().into(),
true,
None => identity
.get_first_public_key_matching(
Purpose::TRANSFER,
SecurityLevel::full_range().into(),
KeyType::all_key_types().into(),
true,
)
.ok_or_else(|| {
ProtocolError::DesiredKeyWithTypePurposeSecurityLevelMissing(
"no transfer public key".to_string(),
)
.ok_or_else(|| {
ProtocolError::DesiredKeyWithTypePurposeSecurityLevelMissing(
"no transfer public key".to_string(),
)
})?;
key
}
})?,
};

transition.sign_external(
Expand Down

0 comments on commit cb28ec2

Please sign in to comment.