Skip to content

Commit

Permalink
fix(ci): fix faucet vars + don't deploy contracts from node (#3553)
Browse files Browse the repository at this point in the history
  • Loading branch information
spypsy committed Dec 4, 2023
1 parent 751bb6a commit c7176f6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion yarn-project/aztec-faucet/terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ variable "API_PREFIX" {
}

variable "CHAIN_ID" {
type = string
type = string
default = 31337
}

variable "FAUCET_PRIVATE_KEY" {
Expand Down
6 changes: 5 additions & 1 deletion yarn-project/aztec-node/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ resource "aws_ecs_task_definition" "aztec-node" {
"name": "DEPLOY_TAG",
"value": "${var.DEPLOY_TAG}"
},
{
"name": "DEPLOY_AZTEC_CONTRACTS",
"value": "false"
},
{
"name": "AZTEC_NODE_PORT",
"value": "80"
Expand All @@ -150,7 +154,7 @@ resource "aws_ecs_task_definition" "aztec-node" {
},
{
"name": "ETHEREUM_HOST",
"value": "testnet"
"value": "https://${var.DEPLOY_TAG}-mainnet-fork.aztec.network:8545/${var.API_KEY}"
},
{
"name": "ARCHIVER_POLLING_INTERVAL",
Expand Down
4 changes: 2 additions & 2 deletions yarn-project/ethereum/src/testnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import { Chain } from 'viem';

import { EthereumChain } from './ethereum_chain.js';

const { DEPLOY_TAG = 'aztec-dev' } = process.env;
const { DEPLOY_TAG = 'aztec-dev', CHAIN_ID = 31337 } = process.env;

export const createTestnetChain = (apiKey: string) => {
const chain: Chain = {
id: 677868,
id: +CHAIN_ID,
name: 'testnet',
network: 'aztec',
nativeCurrency: {
Expand Down

0 comments on commit c7176f6

Please sign in to comment.