From 78f588c14b23f4cd21b61d0d11afc8996a1046be Mon Sep 17 00:00:00 2001 From: Dan Oved Date: Fri, 17 Nov 2023 14:50:28 -0800 Subject: [PATCH] Add implementation getter to premint executor (#372) This reverts commit 4d0c9dc37bbf5a7aec64ce04a87bac1ce2e9108a. --- .changeset/wild-months-press.md | 5 +++++ .../src/delegation/ZoraCreator1155PremintExecutorImpl.sol | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 .changeset/wild-months-press.md diff --git a/.changeset/wild-months-press.md b/.changeset/wild-months-press.md new file mode 100644 index 000000000..009fd9fc7 --- /dev/null +++ b/.changeset/wild-months-press.md @@ -0,0 +1,5 @@ +--- +"@zoralabs/zora-1155-contracts": patch +--- + +Added impl getter to premint executor diff --git a/packages/1155-contracts/src/delegation/ZoraCreator1155PremintExecutorImpl.sol b/packages/1155-contracts/src/delegation/ZoraCreator1155PremintExecutorImpl.sol index ec360e993..f2f635643 100644 --- a/packages/1155-contracts/src/delegation/ZoraCreator1155PremintExecutorImpl.sol +++ b/packages/1155-contracts/src/delegation/ZoraCreator1155PremintExecutorImpl.sol @@ -224,6 +224,11 @@ contract ZoraCreator1155PremintExecutorImpl is } // upgrade functionality + /// @notice Returns the current implementation address + function implementation() external view returns (address) { + return _getImplementation(); + } + error UpgradeToMismatchedContractName(string expected, string actual); /// @notice Ensures the caller is authorized to upgrade the contract