Skip to content

Commit 423c6e9

Browse files
feat(KlerosCore): governor proposal function
1 parent c25334c commit 423c6e9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

contracts/src/arbitration/KlerosCore.sol

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,20 @@ contract KlerosCore is IArbitrator {
171171
// * Governance * //
172172
// ************************ //
173173

174+
/** @dev Allows the governor to call anything on behalf of the contract.
175+
* @param _destination The destination of the call.
176+
* @param _amount The value sent with the call.
177+
* @param _data The data sent with the call.
178+
*/
179+
function executeGovernorProposal(
180+
address _destination,
181+
uint256 _amount,
182+
bytes memory _data
183+
) external onlyByGovernor {
184+
(bool success, ) = _destination.call{value: _amount}(_data);
185+
require(success, "Unsuccessful call");
186+
}
187+
174188
/** @dev Changes the `governor` storage variable.
175189
* @param _governor The new value for the `governor` storage variable.
176190
*/

0 commit comments

Comments
 (0)