diff --git a/scripts/deploy_all.ts b/scripts/deploy_all.ts index fa8913af..ee2d212a 100644 --- a/scripts/deploy_all.ts +++ b/scripts/deploy_all.ts @@ -25,7 +25,7 @@ async function main() { await deployFlightDelayComponentContracts(libraries, services, fireOwner, protocolOwner); - await deployCropComponentContracts(libraries, services, fireOwner, productOperator, protocolOwner); + await deployCropComponentContracts(libraries, services, fireOwner, protocolOwner); } if (require.main === module) { diff --git a/scripts/deploy_crop_components.ts b/scripts/deploy_crop_components.ts index 74a25c1f..41d5295a 100644 --- a/scripts/deploy_crop_components.ts +++ b/scripts/deploy_crop_components.ts @@ -13,7 +13,7 @@ import { logger } from "./logger"; async function main() { loadVerificationQueueState(); - const { protocolOwner, productOwner: cropOwner, productOperator } = await getNamedAccounts(); + const { protocolOwner, productOwner: cropOwner } = await getNamedAccounts(); await deployCropComponentContracts( { @@ -41,14 +41,13 @@ async function main() { instanceServiceAddress: process.env.INSTANCE_SERVICE_ADDRESS!, } as ServiceAddresses, cropOwner, - productOperator, protocolOwner, ); } export async function deployCropComponentContracts( - libraries: LibraryAddresses, services: ServiceAddresses, cropOwner: Signer, productOperator: Signer, registryOwner: Signer) { + libraries: LibraryAddresses, services: ServiceAddresses, cropOwner: Signer, registryOwner: Signer) { resetBalances(); resetGasSpent(); @@ -209,7 +208,7 @@ export async function deployCropComponentContracts( await executeTx(async () => await instance.grantRole( roleId, - await productOperator.getAddress(), + await cropOwner.getAddress(), getTxOpts()), "crop - grantProductOperator", [IInstance__factory.createInterface()]