File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
contracts/src/arbitration Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff 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 */
You can’t perform that action at this time.
0 commit comments