diff --git a/packages/1155-deployments/src/DeploymentConfig.sol b/packages/1155-deployments/src/DeploymentConfig.sol index 14a460e5..cc0897f8 100644 --- a/packages/1155-deployments/src/DeploymentConfig.sol +++ b/packages/1155-deployments/src/DeploymentConfig.sol @@ -38,6 +38,8 @@ struct Deployment { address preminterProxy; /// @notice Upgrade gate address upgradeGate; + /// @notice erc20 minter + address erc20Minter; } abstract contract DeploymentConfig is Script { @@ -65,6 +67,7 @@ abstract contract DeploymentConfig is Script { string constant PREMINTER_PROXY = "PREMINTER_PROXY"; string constant PREMINTER_IMPL = "PREMINTER_IMPL"; string constant UPGRADE_GATE = "UPGRADE_GATE"; + string constant ERC20_MINTER = "ERC20_MINTER"; /// @notice Return a prefixed key for reading with a ".". /// @param key key to prefix @@ -106,6 +109,7 @@ abstract contract DeploymentConfig is Script { deployment.preminterImpl = readAddressOrDefaultToZero(json, PREMINTER_IMPL); deployment.preminterProxy = readAddressOrDefaultToZero(json, PREMINTER_PROXY); deployment.upgradeGate = readAddressOrDefaultToZero(json, UPGRADE_GATE); + deployment.erc20Minter = readAddressOrDefaultToZero(json, ERC20_MINTER); } function getDeterminsticMintsManagerAddress() internal view returns (address) { diff --git a/packages/1155-deployments/src/ZoraDeployerBase.sol b/packages/1155-deployments/src/ZoraDeployerBase.sol index cf09d6a3..c552a62f 100644 --- a/packages/1155-deployments/src/ZoraDeployerBase.sol +++ b/packages/1155-deployments/src/ZoraDeployerBase.sol @@ -36,6 +36,7 @@ abstract contract ZoraDeployerBase is DeploymentTestingUtils, ScriptDeploymentCo vm.serializeAddress(deploymentJsonKey, PREMINTER_PROXY, deployment.preminterProxy); vm.serializeAddress(deploymentJsonKey, PREMINTER_IMPL, deployment.preminterImpl); vm.serializeAddress(deploymentJsonKey, UPGRADE_GATE, deployment.upgradeGate); + vm.serializeAddress(deploymentJsonKey, ERC20_MINTER, deployment.erc20Minter); deploymentJson = vm.serializeAddress(deploymentJsonKey, FACTORY_PROXY, deployment.factoryProxy); }