Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
novaknole committed Oct 1, 2024
1 parent d1feeeb commit 55a0cc6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions contracts/src/plugin/extensions/proposal/Proposal.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ abstract contract Proposal is IProposal, ERC165 {
/// @param _interfaceId The ID of the interface.
/// @return Returns `true` if the interface is supported.
function supportsInterface(bytes4 _interfaceId) public view virtual override returns (bool) {
// In addition to the current interfaceId, also support previous version of the interfaceId that did not
// include the createProposal() function as standard
// In addition to the current interfaceId, also support previous version of the interfaceId
// that did not include the following functions:
// `createProposal, canExecute, createProposalId, createProposalParamsABI`.
return
_interfaceId ==
type(IProposal).interfaceId ^
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ abstract contract ProposalUpgradeable is IProposal, ERC165Upgradeable {
/// @param _interfaceId The ID of the interface.
/// @return Returns `true` if the interface is supported.
function supportsInterface(bytes4 _interfaceId) public view virtual override returns (bool) {
// In addition to the current interfaceId, also support previous version of the interfaceId that did not
// include the createProposal() function as standard
// In addition to the current interfaceId, also support previous version of the interfaceId
// that did not include the following functions:
// `createProposal, canExecute, createProposalId, createProposalParamsABI`.
return
_interfaceId ==
type(IProposal).interfaceId ^
Expand Down

0 comments on commit 55a0cc6

Please sign in to comment.