From 879f99bf87b7826bad8c2530a42f5ed16cf340b7 Mon Sep 17 00:00:00 2001 From: Nico Flaig Date: Fri, 13 Dec 2024 21:29:10 +0100 Subject: [PATCH] feat: expose `DOMAIN_APPLICATION_MASK` in config/spec api (#7296) * feat: expose DOMAIN_APPLICATION_MASK in config/spec api * Lint --- packages/beacon-node/src/api/impl/config/constants.ts | 2 ++ packages/beacon-node/test/e2e/api/impl/config.test.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/beacon-node/src/api/impl/config/constants.ts b/packages/beacon-node/src/api/impl/config/constants.ts index c55cfe7008f4..6b390727cec3 100644 --- a/packages/beacon-node/src/api/impl/config/constants.ts +++ b/packages/beacon-node/src/api/impl/config/constants.ts @@ -7,6 +7,7 @@ import { DEPOSIT_CONTRACT_TREE_DEPTH, DOMAIN_AGGREGATE_AND_PROOF, DOMAIN_APPLICATION_BUILDER, + DOMAIN_APPLICATION_MASK, DOMAIN_BEACON_ATTESTER, DOMAIN_BEACON_PROPOSER, DOMAIN_BLS_TO_EXECUTION_CHANGE, @@ -67,6 +68,7 @@ export const specConstants = { DOMAIN_VOLUNTARY_EXIT, DOMAIN_SELECTION_PROOF, DOMAIN_AGGREGATE_AND_PROOF, + DOMAIN_APPLICATION_MASK, DOMAIN_APPLICATION_BUILDER, // phase0/validator.md diff --git a/packages/beacon-node/test/e2e/api/impl/config.test.ts b/packages/beacon-node/test/e2e/api/impl/config.test.ts index a878d41a36f0..474826050a3a 100644 --- a/packages/beacon-node/test/e2e/api/impl/config.test.ts +++ b/packages/beacon-node/test/e2e/api/impl/config.test.ts @@ -60,7 +60,7 @@ async function downloadRemoteConstants(commit: string): Promise { const constantNames: string[] = []; for (const spec of await Promise.all(downloadedSpecs)) { - const matches = spec.matchAll(/\|\s`*([A-Z_]+)`\s\|/g); + const matches = spec.matchAll(/\|\s`*([A-Z_]+)`\s+\|/g); for (const match of matches) { constantNames.push(match[1]); }