Skip to content

Commit

Permalink
Merge branch 'main' into feat/operators
Browse files Browse the repository at this point in the history
  • Loading branch information
re1ro authored Jun 12, 2024
2 parents 8cd34b5 + c32c380 commit b03634c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion move/axelar_gateway/sources/auth.move
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ module axelar_gateway::auth {
previous_signer = current_signer;
};

assert!(total_weight >= signers.threshold(), EInvalidThreshold);
let threshold = signers.threshold();
assert!(threshold != 0 && total_weight >= threshold, EInvalidThreshold);
}

fun update_rotation_timestamp(self: &mut AxelarSigners, clock: &Clock, enforce_rotation_delay: bool) {
Expand Down

0 comments on commit b03634c

Please sign in to comment.