Skip to content

Commit

Permalink
removed unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Mudit Sarda authored and muditDhiway committed Dec 24, 2024
1 parent 43facf2 commit 7b88e7a
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions pallets/registries/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1433,14 +1433,8 @@ fn revoke_should_fail_if_admin_authorization_is_not_found() {
81, 49, 7, 144, 99, 182, 241, 123, 56, 76, 190, 204,
];

let auth_id_digest = <Test as frame_system::Config>::Hashing::hash(
&[&registry_id.encode()[..], &creator.encode()[..], &creator.encode()[..]].concat()[..],
);

let gibberish_auth_id_digest = <Test as frame_system::Config>::Hashing::hash(&gibberish[..]);

let authorization_id: AuthorizationIdOf = generate_authorization_id::<Test>(&auth_id_digest);

let gibberish_authorization_id: AuthorizationIdOf =
generate_authorization_id::<Test>(&gibberish_auth_id_digest);

Expand Down Expand Up @@ -1474,7 +1468,6 @@ fn revoke_should_fail_if_admin_authorization_is_not_found() {
#[test]
fn reinstate_should_fail_if_admin_authorization_is_not_found() {
let creator = ACCOUNT_00;
let delegate = ACCOUNT_01;
let registry = [2u8; 256].to_vec();

let raw_blob = [2u8; 256].to_vec();
Expand Down Expand Up @@ -1566,14 +1559,8 @@ fn update_should_fail_if_admin_authorization_is_not_found() {
81, 49, 7, 144, 99, 182, 241, 123, 56, 76, 190, 204,
];

let auth_id_digest = <Test as frame_system::Config>::Hashing::hash(
&[&registry_id.encode()[..], &creator.encode()[..], &creator.encode()[..]].concat()[..],
);

let gibberish_auth_id_digest = <Test as frame_system::Config>::Hashing::hash(&gibberish[..]);

let authorization_id: AuthorizationIdOf = generate_authorization_id::<Test>(&auth_id_digest);

let gibberish_authorization_id: AuthorizationIdOf =
generate_authorization_id::<Test>(&gibberish_auth_id_digest);

Expand Down Expand Up @@ -1628,14 +1615,8 @@ fn archive_should_fail_if_admin_authorization_is_not_found() {
81, 49, 7, 144, 99, 182, 241, 123, 56, 76, 190, 204,
];

let auth_id_digest = <Test as frame_system::Config>::Hashing::hash(
&[&registry_id.encode()[..], &creator.encode()[..], &creator.encode()[..]].concat()[..],
);

let gibberish_auth_id_digest = <Test as frame_system::Config>::Hashing::hash(&gibberish[..]);

let authorization_id: AuthorizationIdOf = generate_authorization_id::<Test>(&auth_id_digest);

let gibberish_authorization_id: AuthorizationIdOf =
generate_authorization_id::<Test>(&gibberish_auth_id_digest);

Expand Down Expand Up @@ -1669,7 +1650,6 @@ fn archive_should_fail_if_admin_authorization_is_not_found() {
#[test]
fn restore_should_fail_if_admin_authorization_is_not_found() {
let creator = ACCOUNT_00;
let delegate = ACCOUNT_01;
let registry = [2u8; 256].to_vec();

let raw_blob = [2u8; 256].to_vec();
Expand Down

0 comments on commit 7b88e7a

Please sign in to comment.