Skip to content

Commit

Permalink
change configration
Browse files Browse the repository at this point in the history
  • Loading branch information
GalaxySciTech committed Nov 29, 2023
1 parent 6c03a1a commit 3232513
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .example.env
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ PARENTNET_ZERO_CONTRACT=0x0000000

PARENTCHAIN_WALLET_PK=0x123

ZERO_WALLET_PK=0x123
PARENTNET_ZERO_WALLET_PK=0x123

SLACK_WEBHOOK=https://hooks.slack.com/services/blablabla
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ app.listen(config.port, async () => {
});

app.listen(config.port + 1, async () => {
if (!process.env.ZERO_WALLET_PK) {
if (!process.env.PARENTNET_ZERO_WALLET_PK) {
logger.error("zero pk not found ,will dont running zero relayer");
return;
}
Expand Down
4 changes: 2 additions & 2 deletions src/service/zero/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import { sleep } from "../../utils";
import Web3 from "web3";

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

const csc = process.env.CHECKPOINT_CONTRACT;
Expand Down

0 comments on commit 3232513

Please sign in to comment.