Skip to content

Commit

Permalink
fix pk init bug (#31)
Browse files Browse the repository at this point in the history
fix pk init bug
  • Loading branch information
GalaxySciTech authored Nov 27, 2023
1 parent 81abe5e commit dcf3b50
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/service/zero/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ import fetch from "node-fetch";
import { sleep } from "../../utils";
import Web3 from "web3";

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

const csc = process.env.CHECKPOINT_CONTRACT;

Expand Down

0 comments on commit dcf3b50

Please sign in to comment.