Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: PR feedback
  • Loading branch information
bekolb committed Mar 15, 2019
commit e8fa392f6e989ed33231cfe0e6e9e4b7c4c36ee4
2 changes: 1 addition & 1 deletion runtime/src/attestation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ decl_module! {
let mut existing_attestations_for_claim = <Attestations<T>>::get(claim_hash.clone());
for v in existing_attestations_for_claim.iter_mut() {
if !v.3 {
if v.1.eq(&sender) && !v.3 {
if v.1.eq(&sender) {
last_attested = true;
v.3 = true;
} else {
Expand Down
4 changes: 2 additions & 2 deletions runtime/src/delegation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ decl_module! {
return Err("not permitted to revoke")
}
if !r.2 {
r.2 = false;
r.2 = true;
<Root<T>>::insert(root_id.clone(), r);
Self::revoke_children(&root_id);
}
Expand Down Expand Up @@ -172,7 +172,7 @@ impl<T: Trait> Module<T> {
fn revoke(delegation: &T::DelegationNodeId) {
let mut d = <Delegations<T>>::get(delegation.clone());
if !d.4 {
d.4 = false;
d.4 = true;
<Delegations<T>>::insert(delegation.clone(), d);
Self::revoke_children(delegation);
}
Expand Down