Skip to content

Commit

Permalink
fix(strategy-tests): transfer keys were being disabled (#1995)
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldelucia authored Jul 24, 2024
1 parent 02942c2 commit 69d00fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/strategy-tests/src/transitions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use dpp::identity::identity_public_key::accessors::v0::{
};
use dpp::identity::state_transition::asset_lock_proof::InstantAssetLockProof;
use dpp::identity::KeyType::ECDSA_SECP256K1;
use dpp::identity::Purpose::AUTHENTICATION;
use dpp::identity::Purpose::{AUTHENTICATION, TRANSFER};
use dpp::identity::SecurityLevel::{CRITICAL, MASTER};
use dpp::identity::{Identity, IdentityPublicKey, KeyID, KeyType, Purpose, SecurityLevel};
use dpp::prelude::AssetLockProof;
Expand Down Expand Up @@ -398,6 +398,7 @@ pub fn create_identity_update_transition_disable_keys(
&& !(key.security_level() == CRITICAL
&& key.purpose() == AUTHENTICATION
&& key.key_type() == ECDSA_SECP256K1))
&& key.purpose() != TRANSFER
})
.map(|(key_id, _)| *key_id)
.collect::<Vec<_>>();
Expand Down

0 comments on commit 69d00fd

Please sign in to comment.