Update Prettier Solidity (#3898)
This commit is contained in:
@ -314,7 +314,7 @@ abstract contract Governor is Context, ERC165, EIP712, IGovernor, IERC721Receive
|
||||
* @dev Internal execution mechanism. Can be overridden to implement different execution mechanism
|
||||
*/
|
||||
function _execute(
|
||||
uint256, /* proposalId */
|
||||
uint256 /* proposalId */,
|
||||
address[] memory targets,
|
||||
uint256[] memory values,
|
||||
bytes[] memory calldatas,
|
||||
@ -331,9 +331,9 @@ abstract contract Governor is Context, ERC165, EIP712, IGovernor, IERC721Receive
|
||||
* @dev Hook before execution is triggered.
|
||||
*/
|
||||
function _beforeExecute(
|
||||
uint256, /* proposalId */
|
||||
uint256 /* proposalId */,
|
||||
address[] memory targets,
|
||||
uint256[] memory, /* values */
|
||||
uint256[] memory /* values */,
|
||||
bytes[] memory calldatas,
|
||||
bytes32 /*descriptionHash*/
|
||||
) internal virtual {
|
||||
@ -350,10 +350,10 @@ abstract contract Governor is Context, ERC165, EIP712, IGovernor, IERC721Receive
|
||||
* @dev Hook after execution is triggered.
|
||||
*/
|
||||
function _afterExecute(
|
||||
uint256, /* proposalId */
|
||||
address[] memory, /* targets */
|
||||
uint256[] memory, /* values */
|
||||
bytes[] memory, /* calldatas */
|
||||
uint256 /* proposalId */,
|
||||
address[] memory /* targets */,
|
||||
uint256[] memory /* values */,
|
||||
bytes[] memory /* calldatas */,
|
||||
bytes32 /*descriptionHash*/
|
||||
) internal virtual {
|
||||
if (_executor() != address(this)) {
|
||||
@ -540,11 +540,7 @@ abstract contract Governor is Context, ERC165, EIP712, IGovernor, IERC721Receive
|
||||
* in a governance proposal to recover tokens or Ether that was sent to the governor contract by mistake.
|
||||
* Note that if the executor is simply the governor itself, use of `relay` is redundant.
|
||||
*/
|
||||
function relay(
|
||||
address target,
|
||||
uint256 value,
|
||||
bytes calldata data
|
||||
) external payable virtual onlyGovernance {
|
||||
function relay(address target, uint256 value, bytes calldata data) external payable virtual onlyGovernance {
|
||||
(bool success, bytes memory returndata) = target.call{value: value}(data);
|
||||
Address.verifyCallResult(success, returndata, "Governor: relay reverted without message");
|
||||
}
|
||||
@ -560,12 +556,7 @@ abstract contract Governor is Context, ERC165, EIP712, IGovernor, IERC721Receive
|
||||
/**
|
||||
* @dev See {IERC721Receiver-onERC721Received}.
|
||||
*/
|
||||
function onERC721Received(
|
||||
address,
|
||||
address,
|
||||
uint256,
|
||||
bytes memory
|
||||
) public virtual override returns (bytes4) {
|
||||
function onERC721Received(address, address, uint256, bytes memory) public virtual override returns (bytes4) {
|
||||
return this.onERC721Received.selector;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user