Skip to content

Commit 6312436

Browse files
committed
Remove EDR stuff from devontainer config and Brewfile
1 parent 5ed0466 commit 6312436

File tree

3 files changed

+3
-31
lines changed

3 files changed

+3
-31
lines changed

.devcontainer/devcontainer.json

+2-16
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
11
{
2-
"name": "Hardhat + EDR",
2+
"name": "Hardhat",
33
"image": "mcr.microsoft.com/devcontainers/base:bullseye",
44
"features": {
55
"ghcr.io/devcontainers/features/node:1": {
66
"version": "18"
77
}
88
},
99
"postAttachCommand": "scripts/setup.sh",
10-
"portsAttributes": {
11-
// The default port of mdbook
12-
"3000": {
13-
"label": "mdbook",
14-
"onAutoForward": "openPreview"
15-
}
16-
},
1710
"containerEnv": {
1811
"ALCHEMY_URL": "${localEnv:ALCHEMY_URL}",
1912
"INFURA_URL": "${localEnv:INFURA_URL}"
@@ -23,16 +16,9 @@
2316
"extensions": [
2417
"esbenp.prettier-vscode",
2518
"NomicFoundation.hardhat-solidity",
26-
"rust-lang.rust-analyzer",
2719
"tamasfe.even-better-toml",
2820
"vadimcn.vscode-lldb"
29-
],
30-
"settings": {
31-
"rust-analyzer.cargo.features": "all",
32-
"rust-analyzer.rustfmt.extraArgs": [
33-
"+nightly"
34-
]
35-
}
21+
]
3622
}
3723
}
3824
}

Brewfile

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# Rust toolchain
2-
brew "rustup-init"
31
# NodeJS version 18
42
brew "node@18"
53
# Yarn package manager for NodeJS

scripts/setup.sh

+1-13
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,8 @@
11
#!/bin/bash
22
set -euo pipefail
33

4-
rust_version=$(<rust-toolchain)
5-
6-
# rustup
7-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain $rust_version
8-
9-
# Make rustup available to this script
10-
source "$HOME/.cargo/env"
11-
12-
# Install nightly rustfmt
13-
rustup toolchain install nightly --profile minimal --component rustfmt
14-
154
sudo apt update
165

176
# TODO: nodejs, npm, yarn
187
# libudev-dev is required by hardhat-ledger
19-
# pkg-config is required by EDR to use OpenSSL
20-
sudo apt install -y libudev-dev pkg-config
8+
sudo apt install -y libudev-dev

0 commit comments

Comments
 (0)