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 [], ); });