Skip to content

Commit

Permalink
update for comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lesterli committed Aug 9, 2023
1 parent 65a26bf commit bd8ff55
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
3 changes: 2 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ RUN npm install
# Copy the entire zkevm-contracts
COPY . .

ENTRYPOINT ["/bin/bash"]
ENTRYPOINT ["/bin/bash"]
CMD ["./docker/scripts/deploy-contracts.sh"]
4 changes: 1 addition & 3 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,4 @@ services:
condition: service_started
environment:
- JSONRPC_HTTP_URL=http://zkevm-mock-l1-network:8545
- L2_CHAIN_ID=2955
command:
- "./docker/scripts/deploy-contracts.sh"
- L2_CHAIN_ID=2955
4 changes: 2 additions & 2 deletions docker/scripts/deploy-contracts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ set -eux

echo "JSONRPC_HTTP_URL: $JSONRPC_HTTP_URL"
node docker/scripts/fund-accounts.js
echo "Replace 1001 with $L2_CHAIN_ID"
sed -i.bak "s/\"chainID\": 1001/\"chainID\": $L2_CHAIN_ID/g" docker/scripts/deploy_parameters_docker.json
echo "Replace <chainID> with $L2_CHAIN_ID"
sed -i.bak "s/<chainID>/$L2_CHAIN_ID/g" docker/scripts/deploy_parameters_docker.json
cp docker/scripts/deploy_parameters_docker.json deployment/deploy_parameters.json
cp docker/scripts/genesis_docker.json deployment/genesis.json
npx hardhat run deployment/testnet/prepareTestnet.js --network zkevmMockL1Network
Expand Down
2 changes: 1 addition & 1 deletion docker/scripts/deploy_parameters_docker.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"networkName": "zkevm",
"version":"0.0.1",
"trustedSequencer":"0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266",
"chainID": 1001,
"chainID": <chainID>,
"trustedAggregator":"0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
"trustedAggregatorTimeout": 604799,
"pendingStateTimeout": 604799,
Expand Down

0 comments on commit bd8ff55

Please sign in to comment.