Skip to content
Snippets Groups Projects
Unverified Commit 75f19a0a authored by bgallois's avatar bgallois
Browse files

fix bad signature shadowed error

parent 2fcc5ac0
No related branches found
No related tags found
No related merge requests found
...@@ -1507,7 +1507,7 @@ fn test_change_owner_key_validator_keys_set() { ...@@ -1507,7 +1507,7 @@ fn test_change_owner_key_validator_keys_set() {
let bob = AccountKeyring::Bob.to_account_id(); let bob = AccountKeyring::Bob.to_account_id();
let ferdie = AccountKeyring::Ferdie.to_account_id(); let ferdie = AccountKeyring::Ferdie.to_account_id();
let payload = (b"icok", genesis_hash, 2u32, bob.clone()).encode(); let payload = (b"icok", genesis_hash, 2u32, bob.clone()).encode();
let signature = AccountKeyring::Bob.sign(&payload); let signature = AccountKeyring::Ferdie.sign(&payload);
// Bob is not an online validator, but his identity/owner_key is already associated. // Bob is not an online validator, but his identity/owner_key is already associated.
// He should not be able to change its owner_key. // He should not be able to change its owner_key.
...@@ -1537,7 +1537,7 @@ fn test_change_owner_key_validator_online() { ...@@ -1537,7 +1537,7 @@ fn test_change_owner_key_validator_online() {
let alice = AccountKeyring::Alice.to_account_id(); let alice = AccountKeyring::Alice.to_account_id();
let ferdie = AccountKeyring::Ferdie.to_account_id(); let ferdie = AccountKeyring::Ferdie.to_account_id();
let payload = (b"icok", genesis_hash, 1u32, alice.clone()).encode(); let payload = (b"icok", genesis_hash, 1u32, alice.clone()).encode();
let signature = AccountKeyring::Alice.sign(&payload); let signature = AccountKeyring::Ferdie.sign(&payload);
// Alice is an online validator // Alice is an online validator
assert!(pallet_authority_members::OnlineAuthorities::<Runtime>::get().contains(&1)); assert!(pallet_authority_members::OnlineAuthorities::<Runtime>::get().contains(&1));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment