Skip to content

Commit

Permalink
from memory to calldata in metadataextension
Browse files Browse the repository at this point in the history
  • Loading branch information
novaknole committed Oct 9, 2024
1 parent 2cc8ea5 commit 8a23aea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/src/utils/metadata/MetadataExtension.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ abstract contract MetadataExtension is ERC165, DaoAuthorizable {

/// @notice Allows to set the metadata.
/// @param _metadata The plugin specific information encoded in bytes.
function setMetadata(bytes memory _metadata) public virtual auth(SET_METADATA_PERMISSION_ID) {
function setMetadata(bytes calldata _metadata) public virtual auth(SET_METADATA_PERMISSION_ID) {
_setMetadata(_metadata);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ abstract contract MetadataExtensionUpgradeable is ERC165Upgradeable, DaoAuthoriz

/// @notice Allows to update only the metadata.
/// @param _metadata The utf8 bytes of a content addressing cid that stores plugin's information.
function setMetadata(bytes memory _metadata) public virtual auth(SET_METADATA_PERMISSION_ID) {
function setMetadata(bytes calldata _metadata) public virtual auth(SET_METADATA_PERMISSION_ID) {
_setMetadata(_metadata);
}

Expand Down

0 comments on commit 8a23aea

Please sign in to comment.