Skip to content

Commit

Permalink
fix: remove maskedErrors, 4_000_000 endblock
Browse files Browse the repository at this point in the history
  • Loading branch information
shrugs committed Jan 27, 2025
1 parent f59250c commit 5f6eece
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apps/ensnode/src/plugins/eth/ponder.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const pluginNamespace = createPluginNamespace(ownedName);
// constrain indexing between the following start/end blocks
// https://ponder.sh/0_6/docs/contracts-and-networks#block-range
const START_BLOCK: ContractConfig["startBlock"] = undefined;
const END_BLOCK: ContractConfig["endBlock"] = 4_000_000;
const END_BLOCK: ContractConfig["endBlock"] = undefined;

const REGISTRY_OLD_ADDRESS = "0x314159265dd8dbb310642f98f50c066173c1259b";
const REGISTRY_ADDRESS = "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
Expand Down
7 changes: 1 addition & 6 deletions packages/ponder-subgraph-api/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,7 @@ export const graphql = ({
return { drizzle, metadataStore, getDataLoader };
},
graphqlEndpoint: c.req.path,
maskedErrors: {
maskError: (error: unknown, message: string, isDev?: boolean) => {
console.error(error);
return new Error(message);
},
},
maskedErrors: process.env.NODE_ENV === "production",
logging: false,
graphiql: true, // NOTE: enable graph-yoga's default graphiql
parserAndValidationCache: false,
Expand Down

0 comments on commit 5f6eece

Please sign in to comment.