Skip to content

Commit

Permalink
fix calldata to memory
Browse files Browse the repository at this point in the history
  • Loading branch information
novaknole committed Aug 14, 2024
1 parent f6f5f3d commit b233838
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions contracts/src/plugin/Plugin.sol
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ abstract contract Plugin is IPlugin, ERC165, DaoAuthorizable, ProtocolVersion {
/// @return failureMap address of the implementation contract.
function _execute(
bytes32 _callId,
IDAO.Action[] calldata _actions,
IDAO.Action[] memory _actions,
uint256 _allowFailureMap
) internal virtual returns (bytes[] memory execResults, uint256 failureMap) {
(execResults, failureMap) = IDAO(target).execute(_callId, _actions, _allowFailureMap);
Expand All @@ -71,7 +71,7 @@ abstract contract Plugin is IPlugin, ERC165, DaoAuthorizable, ProtocolVersion {
function _execute(
address _target,
bytes32 _callId,
IDAO.Action[] calldata _actions,
IDAO.Action[] memory _actions,
uint256 _allowFailureMap
) internal virtual returns (bytes[] memory execResults, uint256 failureMap) {
(execResults, failureMap) = IDAO(_target).execute(_callId, _actions, _allowFailureMap);
Expand Down
4 changes: 2 additions & 2 deletions contracts/src/plugin/PluginCloneable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ abstract contract PluginCloneable is
/// @return failureMap address of the implementation contract.
function _execute(
bytes32 _callId,
IDAO.Action[] calldata _actions,
IDAO.Action[] memory _actions,
uint256 _allowFailureMap
) internal virtual returns (bytes[] memory execResults, uint256 failureMap) {
(execResults, failureMap) = IDAO(target).execute(_callId, _actions, _allowFailureMap);
Expand All @@ -85,7 +85,7 @@ abstract contract PluginCloneable is
function _execute(
address _target,
bytes32 _callId,
IDAO.Action[] calldata _actions,
IDAO.Action[] memory _actions,
uint256 _allowFailureMap
) internal virtual returns (bytes[] memory execResults, uint256 failureMap) {
(execResults, failureMap) = IDAO(_target).execute(_callId, _actions, _allowFailureMap);
Expand Down
4 changes: 2 additions & 2 deletions contracts/src/plugin/PluginUUPSUpgradeable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ abstract contract PluginUUPSUpgradeable is
/// @return failureMap address of the implementation contract.
function _execute(
bytes32 _callId,
IDAO.Action[] calldata _actions,
IDAO.Action[] memory _actions,
uint256 _allowFailureMap
) internal virtual returns (bytes[] memory execResults, uint256 failureMap) {
(execResults, failureMap) = IDAO(target).execute(_callId, _actions, _allowFailureMap);
Expand All @@ -99,7 +99,7 @@ abstract contract PluginUUPSUpgradeable is
function _execute(
address _target,
bytes32 _callId,
IDAO.Action[] calldata _actions,
IDAO.Action[] memory _actions,
uint256 _allowFailureMap
) internal virtual returns (bytes[] memory execResults, uint256 failureMap) {
(execResults, failureMap) = IDAO(_target).execute(_callId, _actions, _allowFailureMap);
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 @@ -22,7 +22,7 @@ abstract contract Proposal is IProposal, ERC165 {
// this will not return the correct value anyways anymore.
/// @inheritdoc IProposal
function proposalCount() public view override returns (uint256) {
return proposalCounter.current();
return 0;
}

/// @notice Checks if this or the parent contract supports an interface by its ID.
Expand Down

0 comments on commit b233838

Please sign in to comment.