Skip to content

Commit

Permalink
watcher: support .env entry for near archive rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
panoel committed Dec 1, 2023
1 parent 665cb27 commit 5ea4d78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion watcher/src/watchers/NearArchiveWatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ export class NearArchiveWatcher extends Watcher {
}

async getProvider(): Promise<Provider> {
return (this.provider = this.provider || (await getNearProvider(NEAR_ARCHIVE_RPC)));
const nearArchiveRPC: string = process.env.NEAR_ARCHIVE_RPC || 'https://rpc.mainnet.near.org';
return (this.provider = this.provider || (await getNearProvider(nearArchiveRPC)));
}

isValidVaaKey(key: string) {
Expand Down

0 comments on commit 5ea4d78

Please sign in to comment.