Skip to content

Commit

Permalink
fix: XVS-02
Browse files Browse the repository at this point in the history
  • Loading branch information
GitGuru7 committed Dec 12, 2023
1 parent 6785b84 commit 6bacbf7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion contracts/Bridge/XVSBridgeAdmin.sol
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ contract XVSBridgeAdmin is AccessControlledV8 {
function upsertSignature(string[] calldata signatures_, bool[] calldata active_) external onlyOwner {
uint256 signatureLength = signatures_.length;
require(signatureLength == active_.length, "Input arrays must have the same length");
for (uint256 i; i < signatureLength; i++) {
for (uint256 i; i < signatureLength; ) {
bytes4 sigHash = bytes4(keccak256(bytes(signatures_[i])));
bytes memory signature = bytes(functionRegistry[sigHash]);
if (active_[i] && signature.length == 0) {
Expand All @@ -81,6 +81,9 @@ contract XVSBridgeAdmin is AccessControlledV8 {
delete functionRegistry[sigHash];
emit FunctionRegistryChanged(signatures_[i], false);
}
unchecked {
i++;
}
}
}

Expand Down

0 comments on commit 6bacbf7

Please sign in to comment.