Skip to content

Commit

Permalink
Repair tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mikozet committed Dec 13, 2024
1 parent 81591a2 commit 2f8535b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/services/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@ import { getAccount } from '~/services/wallet';
import web3 from '~/services/web3';
import { PATHFINDER_HOPS_DEFAULT } from '~/utils/constants';

if (!process.env.HUB_ADDRESS || typeof process.env.HUB_ADDRESS !== 'string') {
throw new Error('HUB_ADDRESS is not set or not a string');
}

const core = new CirclesCore(web3, {
apiServiceEndpoint: process.env.API_SERVICE_EXTERNAL,
fallbackHandlerAddress: process.env.SAFE_DEFAULT_CALLBACK_HANDLER,
graphNodeEndpoint: process.env.GRAPH_NODE_EXTERNAL,
hubAddress: process.env.HUB_ADDRESS,
hubAddress: String(process.env.HUB_ADDRESS),
pathfinderServiceEndpoint: process.env.PATHFINDER_SERVICE_ENDPOINT,
pathfinderType: process.env.PATHFINDER_TYPE,
proxyFactoryAddress: process.env.PROXY_FACTORY_ADDRESS,
Expand Down

0 comments on commit 2f8535b

Please sign in to comment.