Skip to content

Commit

Permalink
fix deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
andresaiello committed Oct 4, 2024
1 parent 41c3bab commit 61adba0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/zevm-app-contracts/scripts/xp-nft/upgrade-v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { isProtocolNetworkName } from "@zetachain/protocol-contracts";
import { ethers, network, upgrades } from "hardhat";

import addresses from "../../data/addresses.json";
import { ZetaXP__factory } from "../../typechain-types";
import { saveAddress } from "../address.helpers";
import { verifyContract } from "../explorer.helpers";

Expand All @@ -12,7 +11,7 @@ const upgradeZetaXP = async () => {
if (!isProtocolNetworkName(networkName)) throw new Error("Invalid network name");

//@ts-ignore
const nftAddress = addresses[networkName].ZetaXP;
const nftAddress = addresses["zevm"][networkName].ZetaXP;

const ZetaXPFactory = await ethers.getContractFactory("ZetaXP_V2");
const zetaXP = await upgrades.upgradeProxy(nftAddress, ZetaXPFactory);
Expand Down

0 comments on commit 61adba0

Please sign in to comment.