Skip to content

Commit

Permalink
fix: skip WEB3_RPC_480 and WEB3_RPC_1301
Browse files Browse the repository at this point in the history
  • Loading branch information
jsy1218 committed Oct 2, 2024
1 parent 63de738 commit 29de464
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions bin/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,13 @@ export class RoutingAPIPipeline extends Stack {
// Load RPC provider URLs from AWS secret
let jsonRpcProviders = {} as { [chainId: string]: string }
SUPPORTED_CHAINS.forEach((chainId: ChainId) => {
const key = `WEB3_RPC_${chainId}`
jsonRpcProviders[key] = jsonRpcProvidersSecret.secretValueFromJson(key).toString()
new CfnOutput(this, key, {
value: jsonRpcProviders[key],
})
if (chainId !== ChainId.WORLDCHAIN && chainId !== ChainId.ASTROCHAIN_SEPOLIA) {
const key = `WEB3_RPC_${chainId}`
jsonRpcProviders[key] = jsonRpcProvidersSecret.secretValueFromJson(key).toString()
new CfnOutput(this, key, {
value: jsonRpcProviders[key],
})
}
})

// Load RPC provider URLs from AWS secret (for RPC Gateway)
Expand Down Expand Up @@ -365,8 +367,6 @@ const jsonRpcProviders = {
WEB3_RPC_56: process.env.WEB3_RPC_56!,
WEB3_RPC_8453: process.env.WEB3_RPC_8453!,
WEB3_RPC_324: process.env.WEB3_RPC_324!,
WEB3_RPC_480: process.env.WEB3_RPC_480!,
WEB3_RPC_1301: process.env.WEB3_RPC_1301!,
// The followings are for RPC Gateway
// Optimism
// INFURA_10: process.env.INFURA_10!,
Expand Down

0 comments on commit 29de464

Please sign in to comment.