Skip to content

Commit

Permalink
rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
novaknole committed Aug 27, 2024
1 parent 5306a73 commit 6def9f4
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,9 @@ contract ProposalMock is Proposal {
) external returns (uint256 proposalId) {}

function canExecute(uint256 proposalId) external returns (bool) {}

function createProposalId(
IDAO.Action[] memory actions,
bytes memory metadata
) external returns (uint256) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,9 @@ contract ProposalUpgradeableMock is ProposalUpgradeable {
) external returns (uint256 proposalId) {}

function canExecute(uint256 proposalId) external returns (bool) {}

function createProposalId(
IDAO.Action[] memory actions,
bytes memory metadata
) external returns (uint256) {}
}
2 changes: 1 addition & 1 deletion contracts/src/plugin/extensions/proposal/IProposal.sol
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ interface IProposal {
/// @param actions The actions that will be executed after the proposal passes.
/// @param metadata The custom metadata that is passed when creating a proposal.
/// @return proposalId The id of the proposal.
function getProposalId(
function createProposalId(
IDAO.Action[] memory actions,
bytes memory metadata
) external returns (uint256);
Expand Down
2 changes: 1 addition & 1 deletion contracts/src/plugin/extensions/proposal/Proposal.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ abstract contract Proposal is IProposal, ERC165 {
type(IProposal).interfaceId ^
IProposal.createProposal.selector ^
IProposal.canExecute.selector ^
IProposal.getProposalId.selector ||
IProposal.createProposalId.selector ||
_interfaceId == type(IProposal).interfaceId ||
super.supportsInterface(_interfaceId);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ abstract contract ProposalUpgradeable is IProposal, ERC165Upgradeable {
type(IProposal).interfaceId ^
IProposal.createProposal.selector ^
IProposal.canExecute.selector ^
IProposal.getProposalId.selector ||
IProposal.createProposalId.selector ||
_interfaceId == type(IProposal).interfaceId ||
super.supportsInterface(_interfaceId);
}
Expand Down

0 comments on commit 6def9f4

Please sign in to comment.