Skip to content

Commit

Permalink
remove destination cli
Browse files Browse the repository at this point in the history
  • Loading branch information
lukema95 committed Jan 24, 2024
1 parent 56f35d3 commit ea886e0
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions omnichain/multioutput/tasks/destination.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,9 @@
import { task } from "hardhat/config";
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { getAddress } from "@zetachain/protocol-contracts";

const main = async (args: any, hre: HardhatRuntimeEnvironment) => {
const [signer] = await hre.ethers.getSigners();
console.log(`🔑 Using account: ${signer.address}\n`);

const destinationTokens = args.destination.split(",");
const ZetaMultiOutput = await hre.ethers.getContractAt(
"MultiOutput",
args.contract
);

const tx = await ZetaMultiOutput.registerDestinationToken(destinationTokens);

await tx.wait();

console.log(
`Registered token ${destinationTokens} as destination tokens in the contract ${args.contract}`
`This feature is no longer used, please check for more information: https://github.com/zeta-chain/example-contracts/issues/101`
);
};

Expand Down

0 comments on commit ea886e0

Please sign in to comment.