Skip to content

Commit

Permalink
fix: PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
bekolb committed Mar 15, 2019
1 parent a948405 commit e8fa392
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit e8fa392

Please sign in to comment.