Skip to content

Commit

Permalink
chore: Remove scope interpolation from env vars (#12522)
Browse files Browse the repository at this point in the history
Makes them easier to find in the codebase.
  • Loading branch information
spalladino authored Mar 6, 2025
1 parent b1284ef commit 70942e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yarn-project/sequencer-client/src/publisher/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const getTxSenderConfigMappings: (
defaultValue: EthAddress.ZERO,
},
publisherPrivateKey: {
env: `${scope}_PUBLISHER_PRIVATE_KEY`,
env: scope === 'PROVER' ? `PROVER_PUBLISHER_PRIVATE_KEY` : `SEQ_PUBLISHER_PRIVATE_KEY`,
description: 'The private key to be used by the publisher.',
parseEnv: (val: string) => (val ? `0x${val.replace('0x', '')}` : NULL_KEY),
defaultValue: NULL_KEY,
Expand All @@ -61,7 +61,7 @@ export const getPublisherConfigMappings: (
scope: 'PROVER' | 'SEQ',
) => ConfigMappingsType<PublisherConfig & L1TxUtilsConfig> = scope => ({
l1PublishRetryIntervalMS: {
env: `${scope}_PUBLISH_RETRY_INTERVAL_MS`,
env: scope === `PROVER` ? `PROVER_PUBLISH_RETRY_INTERVAL_MS` : `SEQ_PUBLISH_RETRY_INTERVAL_MS`,
parseEnv: (val: string) => +val,
defaultValue: 1000,
description: 'The interval to wait between publish retries.',
Expand Down

0 comments on commit 70942e9

Please sign in to comment.