From f842d44c210e9bd92447a4bdd1280c068c030e5b Mon Sep 17 00:00:00 2001 From: nidhi-singh02 Date: Tue, 7 Oct 2025 15:22:43 +0530 Subject: [PATCH] upgrade contract fix: artifacts bytecode error resolve --- contract_manager/scripts/deploy_evm_contract.ts | 2 +- contract_manager/scripts/upgrade_evm_entropy_contracts.ts | 2 +- contract_manager/scripts/upgrade_evm_pricefeed_contracts.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contract_manager/scripts/deploy_evm_contract.ts b/contract_manager/scripts/deploy_evm_contract.ts index caed57af65..b0355564a3 100644 --- a/contract_manager/scripts/deploy_evm_contract.ts +++ b/contract_manager/scripts/deploy_evm_contract.ts @@ -38,7 +38,7 @@ async function main() { const address = await chain.deploy( toPrivateKey(argv["private-key"]), artifact["abi"], - artifact["bytecode"], + artifact["bytecode"].object, // As per the artifacts generated by forge, bytecode is an object with an 'object' property argv["deploy-args"] || [], ); diff --git a/contract_manager/scripts/upgrade_evm_entropy_contracts.ts b/contract_manager/scripts/upgrade_evm_entropy_contracts.ts index dae4c1fccc..4558a91805 100644 --- a/contract_manager/scripts/upgrade_evm_entropy_contracts.ts +++ b/contract_manager/scripts/upgrade_evm_entropy_contracts.ts @@ -75,7 +75,7 @@ async function main() { return contract.chain.deploy( toPrivateKey(argv["private-key"]), artifact["abi"], - artifact["bytecode"], + artifact["bytecode"].object, // As per the artifacts generated by forge, bytecode is an object with an 'object' property [], 2, ); diff --git a/contract_manager/scripts/upgrade_evm_pricefeed_contracts.ts b/contract_manager/scripts/upgrade_evm_pricefeed_contracts.ts index 28f4e0519e..0bd28b74d7 100644 --- a/contract_manager/scripts/upgrade_evm_pricefeed_contracts.ts +++ b/contract_manager/scripts/upgrade_evm_pricefeed_contracts.ts @@ -45,7 +45,7 @@ async function main() { return chain.deploy( toPrivateKey(argv["private-key"]), artifact["abi"], - artifact["bytecode"], + artifact["bytecode"].object, // As per the artifacts generated by forge, bytecode is an object with an 'object' property [], ); });