Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Sep 2, 2024
1 parent 13b09d0 commit 9f170e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions universal/hello/tasks/zetachainCall.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { task, types } from "hardhat/config";
import type { HardhatRuntimeEnvironment } from "hardhat/types";
import GatewayABI from "@zetachain/protocol-contracts/abi/GatewayZEVM.sol/GatewayZEVM.json";
import ZRC20ABI from "@zetachain/protocol-contracts/abi/ZRC20.sol/ZRC20.json";

const main = async (args: any, hre: HardhatRuntimeEnvironment) => {
const [signer] = await hre.ethers.getSigners();
Expand All @@ -12,8 +13,7 @@ const main = async (args: any, hre: HardhatRuntimeEnvironment) => {
signer
);

const zrc20Artifact = await hre.artifacts.readArtifact("IZRC20");
const zrc20 = new hre.ethers.Contract(args.zrc20, zrc20Artifact.abi, signer);
const zrc20 = new hre.ethers.Contract(args.zrc20, ZRC20ABI.abi, signer);

const functionSignature = utils.id(args.function).slice(0, 10);
const encodedParameters = utils.defaultAbiCoder.encode(
Expand Down

0 comments on commit 9f170e4

Please sign in to comment.