Skip to content

Commit

Permalink
fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
AllTradesz committed May 24, 2023
1 parent 53f0277 commit 589d4f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ node_modules/
.idea
proposal.md
dump.rdb
dist/
typings/
8 changes: 6 additions & 2 deletions gelato/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ const run = async (): Promise<void> => {
}
logger.info('Synchronizing Gelato tasks');

const pk = process.env.GELATO_ADMIN_PK!;
const privateKey = process.env.GELATO_ADMIN_PK!;
if (!privateKey) {
logger.error("Wallet can't be constructed.");
return;
}

await Promise.allSettled(
Object.values(<Readonly<IChains>>require('../data/chains.js')).map(
Expand All @@ -46,7 +50,7 @@ const run = async (): Promise<void> => {
}

const gelatoAdminWallet: NonceManage = new NonceManage(
new Wallet(pk, new ethers.providers.JsonRpcProvider(chain.rpc))
new Wallet(privateKey, new ethers.providers.JsonRpcProvider(chain.rpc))
);

logger.info(`>>> on-chain harvester sync: ${chain.id.toUpperCase()}`);
Expand Down

0 comments on commit 589d4f2

Please sign in to comment.