Skip to content

Commit 2a17efb

Browse files
committed
Rename the authenticateor info constant to include the version number
1 parent ea9c587 commit 2a17efb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/iota-types/src/account.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use crate::{
1414
pub const AUTHENTICATOR_DF_NAME: &str = "IOTA_AUTHENTICATION";
1515

1616
pub const AUTHENTICATOR_INFO_MODULE_NAME: &IdentStr = ident_str!("account");
17-
pub const AUTHENTICATOR_INFO_STRUCT_NAME: &IdentStr = ident_str!("AuthenticatorInfoV1");
17+
pub const AUTHENTICATOR_INFO_V1_STRUCT_NAME: &IdentStr = ident_str!("AuthenticatorInfoV1");
1818

1919
#[derive(Debug, Serialize, Deserialize, Clone, Eq, PartialEq)]
2020
pub struct AuthenticatorInfoV1 {
@@ -28,7 +28,7 @@ impl AuthenticatorInfoV1 {
2828
StructTag {
2929
address: IOTA_FRAMEWORK_ADDRESS,
3030
module: AUTHENTICATOR_INFO_MODULE_NAME.to_owned(),
31-
name: AUTHENTICATOR_INFO_STRUCT_NAME.to_owned(),
31+
name: AUTHENTICATOR_INFO_V1_STRUCT_NAME.to_owned(),
3232
type_params: Vec::new(),
3333
}
3434
}
@@ -42,7 +42,7 @@ impl AuthenticatorInfoV1 {
4242
pub fn is_authenticator_info_v1(tag: &StructTag) -> bool {
4343
tag.address == IOTA_FRAMEWORK_ADDRESS
4444
&& tag.module.as_ident_str() == AUTHENTICATOR_INFO_MODULE_NAME
45-
&& tag.name.as_ident_str() == AUTHENTICATOR_INFO_STRUCT_NAME
45+
&& tag.name.as_ident_str() == AUTHENTICATOR_INFO_V1_STRUCT_NAME
4646
}
4747
}
4848

0 commit comments

Comments
 (0)