Skip to content

Commit

Permalink
Fix operation order in quorum / receiver update
Browse files Browse the repository at this point in the history
Fixes #93
  • Loading branch information
Dominator008 committed Oct 5, 2023
1 parent 16e7dcb commit 658c5e5
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/MultiBridgeMessageReceiver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,13 @@ contract MultiBridgeMessageReceiver is IMultiBridgeMessageReceiver, ExecutorAwar
address[] calldata _receiverAdapters,
bool[] calldata _operations
) external override onlyGlobalOwner {
/// @dev updates quorum here
_updateQuorum(_newQuorum);

/// @dev updates receiver adapter here
_updateReceiverAdapters(_receiverAdapters, _operations);
if (newQuorum > quorum) {
_updateReceiverAdapters(_receiverAdapters, _operations);
_updateQuorum(_newQuorum);
} else {
_updateQuorum(_newQuorum);
_updateReceiverAdapters(_receiverAdapters, _operations);
}
}

/// @notice Update power quorum threshold of message execution.
Expand Down

0 comments on commit 658c5e5

Please sign in to comment.