Skip to content

Commit

Permalink
fix: ven-1795 l-02
Browse files Browse the repository at this point in the history
  • Loading branch information
Debugger022 committed Aug 4, 2023
1 parent 4c72e43 commit cfaa69a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/Comptroller/Diamond/facets/SetterFacet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ contract SetterFacet is FacetBase {
* @param paused_ The new paused state (true=paused, false=unpaused)
*/
function _setActionsPaused(address[] calldata markets_, Action[] calldata actions_, bool paused_) external {
ensureAllowed("_setActionsPaused(address[],uint256[],bool)");
ensureAllowed("_setActionsPaused(address[],uint8[],bool)");

uint256 numMarkets = markets_.length;
uint256 numActions = actions_.length;
Expand Down
2 changes: 1 addition & 1 deletion tests/hardhat/Comptroller/Diamond/accessControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ describe("Comptroller", () => {
await expect(comptroller.connect(user)._setActionsPaused([], [], true)).to.be.revertedWith("access denied");
expect(accessControl.isAllowedToCall).to.be.calledOnceWith(
userAddress,
"_setActionsPaused(address[],uint256[],bool)",
"_setActionsPaused(address[],uint8[],bool)",
);
});
});
Expand Down

0 comments on commit cfaa69a

Please sign in to comment.