Skip to content

Commit

Permalink
feat: indexerUrl in network config
Browse files Browse the repository at this point in the history
  • Loading branch information
yonadaaa committed Apr 30, 2024
1 parent 30add79 commit 6d41bce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion e2e/packages/client-vanilla/src/mud/getNetworkConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function getNetworkConfig() {
faucetServiceUrl: params.get("faucet") ?? chain.faucetUrl,
worldAddress,
initialBlockNumber,
indexerUrl: params.get("indexerUrl"),
indexerUrl: params.get("indexerUrl") ?? chain.indexerUrl,
rpcHttpUrl: params.get("rpcHttpUrl"),
};
}
2 changes: 1 addition & 1 deletion e2e/packages/client-vanilla/src/mud/setupNetwork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export async function setupNetwork() {
address: networkConfig.worldAddress as Hex,
publicClient,
startBlock: BigInt(networkConfig.initialBlockNumber),
indexerUrl: networkConfig.indexerUrl ?? undefined,
indexerUrl: networkConfig.indexerUrl,
filters: Object.entries(mudConfig.tables).map(([, table]) => {
const tableId = table.tableId;
if (table.name === mudConfig.tables.Position.name) {
Expand Down

0 comments on commit 6d41bce

Please sign in to comment.