We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d50a658 commit 8f1244aCopy full SHA for 8f1244a
1 file changed
src/staking-rewards/staking-rewards.service.ts
@@ -34,7 +34,10 @@ export class StakingRewardsService {
34
35
this.logger.log(`Initializing staking rewards service (IS_LIVE: ${this.isLive})`)
36
const jsonRpc = this.config.get<string>('EVM_JSON_RPC', { infer: true })
37
-
+ if (!jsonRpc) {
38
+ this.logger.error('Missing EVM JSON RPC URL')
39
+ throw new Error('Missing EVM JSON RPC URL')
40
+ }
41
const provider = new ethers.JsonRpcProvider(jsonRpc)
42
43
const hodlerAddress = this.config.get<string>('HODLER_CONTRACT_ADDRESS', { infer: true })
0 commit comments