Skip to content

Commit ffc4a97

Browse files
Merge pull request #3113 from pyth-network/upgrade-contract-fix
chore(contract_manager): upgrade contract script fix
2 parents 4a6c768 + f842d44 commit ffc4a97

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

contract_manager/scripts/deploy_evm_contract.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ async function main() {
3838
const address = await chain.deploy(
3939
toPrivateKey(argv["private-key"]),
4040
artifact["abi"],
41-
artifact["bytecode"],
41+
artifact["bytecode"].object, // As per the artifacts generated by forge, bytecode is an object with an 'object' property
4242
argv["deploy-args"] || [],
4343
);
4444

contract_manager/scripts/upgrade_evm_entropy_contracts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ async function main() {
7575
return contract.chain.deploy(
7676
toPrivateKey(argv["private-key"]),
7777
artifact["abi"],
78-
artifact["bytecode"],
78+
artifact["bytecode"].object, // As per the artifacts generated by forge, bytecode is an object with an 'object' property
7979
[],
8080
2,
8181
);

contract_manager/scripts/upgrade_evm_pricefeed_contracts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ async function main() {
4545
return chain.deploy(
4646
toPrivateKey(argv["private-key"]),
4747
artifact["abi"],
48-
artifact["bytecode"],
48+
artifact["bytecode"].object, // As per the artifacts generated by forge, bytecode is an object with an 'object' property
4949
[],
5050
);
5151
});

0 commit comments

Comments
 (0)