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

fix bad signature shadowed error

parent 3d40828c
No related branches found
No related tags found
1 merge request!319Fix #291
...@@ -1524,7 +1524,7 @@ fn test_change_owner_key_validator_keys_set() { ...@@ -1524,7 +1524,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.
...@@ -1554,7 +1554,7 @@ fn test_change_owner_key_validator_online() { ...@@ -1554,7 +1554,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.
Please register or to comment