Skip to content

Commit ff4fd71

Browse files
authored
chore(gateway-contracts): rename input arg of addHostChainsToGatewayConfig (#933)
1 parent 7e745b0 commit ff4fd71

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

gateway-contracts/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ start-local-node: clean
3030
deploy-contracts-local:
3131
cp $(ENV_PATH) .env
3232
HARDHAT_NETWORK=$(LOCAL_NETWORK_NAME) npx hardhat task:deployAllGatewayContracts
33-
HARDHAT_NETWORK=$(LOCAL_NETWORK_NAME) npx hardhat task:addHostChainsToGatewayConfig --use-internal-gateway-config-address true
33+
HARDHAT_NETWORK=$(LOCAL_NETWORK_NAME) npx hardhat task:addHostChainsToGatewayConfig --use-internal-proxy-address true
3434

3535
test-local:
3636
DOTENV_CONFIG_PATH=$(ENV_PATH) npx hardhat test $(if $(GREP),--grep '$(GREP)',) --network localGateway --skip-setup true

gateway-contracts/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ services:
5454
- CHAIN_ID_GATEWAY=54321
5555
- RPC_URL=http://anvil-node:8546
5656
command:
57-
- npx hardhat task:addHostChainsToGatewayConfig --use-internal-gateway-config-address true
57+
- npx hardhat task:addHostChainsToGatewayConfig --use-internal-proxy-address true
5858
depends_on:
5959
anvil-node:
6060
condition: service_started

gateway-contracts/tasks/addHostChains.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ import { getRequiredEnvVar } from "./utils/loadVariables";
99
// Note: Internal GatewayConfig address is defined in the `addresses/` directory. It should be used
1010
// for local testing. By default, we use the GATEWAY_CONFIG_ADDRESS env var, as done in deployment
1111
task("task:addHostChainsToGatewayConfig")
12-
.addParam("useInternalGatewayConfigAddress", "If internal GatewayConfig address should be used", false, types.boolean)
13-
.setAction(async function ({ useInternalGatewayConfigAddress }, hre) {
12+
.addParam(
13+
"useInternalProxyAddress",
14+
"If proxy address from the /addresses directory should be used",
15+
false,
16+
types.boolean,
17+
)
18+
.setAction(async function ({ useInternalProxyAddress }, hre) {
1419
await hre.run("compile:specific", { contract: "contracts" });
1520
console.log("Register host chains to GatewayConfig contract");
1621

@@ -30,7 +35,7 @@ task("task:addHostChainsToGatewayConfig")
3035
});
3136
}
3237

33-
if (useInternalGatewayConfigAddress) {
38+
if (useInternalProxyAddress) {
3439
dotenv.config({ path: path.join(ADDRESSES_DIR, ".env.gateway"), override: true });
3540
}
3641
const proxyAddress = getRequiredEnvVar("GATEWAY_CONFIG_ADDRESS");

0 commit comments

Comments
 (0)