Skip to content

Commit

Permalink
fix automerge errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bulbozaur committed Jul 25, 2024
1 parent 797099a commit 0f6a0a2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 25 deletions.
2 changes: 1 addition & 1 deletion contracts/libraries/EnumerableProposals.sol
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ library EnumerableProposals {
/// @dev Returns the proposal associated with the given key, reverts if the proposal does not exist
/// @param map The map to check
/// @param key The key of the proposal
/// @return proposal The proposal associated with the given key
/// @return value The proposal associated with the given key
function get(Bytes32ToProposalMap storage map, bytes32 key) internal view returns (Proposal memory value) {
if (!contains(map, key)) {
revert ProposalDoesNotExist(key);
Expand Down
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ out = 'out'
libs = ['node_modules', 'lib']
test = 'test'
cache_path = 'cache_forge'
solc-version = "0.8.26"
# solc-version = "0.8.26"
no-match-path = 'test/kontrol/*'

[profile.kprove]
Expand Down
20 changes: 0 additions & 20 deletions hardhat.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion test/scenario/proposal-deployment-modes.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;
pragma solidity 0.8.26;

import {EmergencyState} from "contracts/libraries/EmergencyProtection.sol";
import {Proposals} from "contracts/libraries/Proposals.sol";
Expand Down
4 changes: 2 additions & 2 deletions test/scenario/timelocked-governance.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ contract TimelockedGovernanceScenario is ScenarioTestBlueprint {
_assertCanExecute(maliciousProposalId, false);

vm.expectRevert(
abi.encodeWithSelector(EmergencyProtection.InvalidEmergencyModeActiveValue.selector, true, false)
abi.encodeWithSelector(EmergencyProtection.InvalidEmergencyModeStatus.selector, true, false)
);
_executeProposal(maliciousProposalId);
}
Expand Down Expand Up @@ -176,7 +176,7 @@ contract TimelockedGovernanceScenario is ScenarioTestBlueprint {
_assertCanExecute(maliciousProposalId, false);

vm.expectRevert(
abi.encodeWithSelector(EmergencyProtection.InvalidEmergencyModeActiveValue.selector, true, false)
abi.encodeWithSelector(EmergencyProtection.InvalidEmergencyModeStatus.selector, true, false)
);
_executeProposal(maliciousProposalId);
}
Expand Down

0 comments on commit 0f6a0a2

Please sign in to comment.