Skip to content

Commit

Permalink
init pk bug (#32)
Browse files Browse the repository at this point in the history
Update index.ts
  • Loading branch information
GalaxySciTech authored Nov 27, 2023
1 parent dcf3b50 commit 967e5c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/service/zero/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ import {
http,
decodeAbiParameters,
} from "viem";
import { privateKeyToAccount } from "viem/accounts";
import { privateKeyToAccount, PrivateKeyAccount } from "viem/accounts";
import endpointABI from "../../abi/endpointABI.json";
import cscABI from "../../abi/cscABI.json";
import fetch from "node-fetch";
import { sleep } from "../../utils";
import Web3 from "web3";

let account: any = null;
if (!process.env.ZERO_WALLET_PK) {
let account: PrivateKeyAccount = null;
if (process.env.ZERO_WALLET_PK) {
account = privateKeyToAccount(`0x${process.env.ZERO_WALLET_PK}`);
}

Expand Down

0 comments on commit 967e5c4

Please sign in to comment.