Skip to content

Commit b91df1d

Browse files
authored
ci: fix truffer error (bnb-chain#3326)
solc-0.6.4 can not be downloaded from truffle solc-bin
1 parent a1cd9d7 commit b91df1d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docker/Dockerfile.truffle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ RUN git clone https://github.com/bnb-chain/canonical-upgradeable-bep20.git /usr/
66

77
WORKDIR /usr/app/canonical-upgradeable-bep20
88
COPY docker/truffle-config.js /usr/app/canonical-upgradeable-bep20
9+
COPY docker/solc-0.6.4 /usr/app/canonical-upgradeable-bep20
910

1011
RUN npm install -g --unsafe-perm truffle@v5.1.14
1112
RUN npm install

docker/solc-0.6.4

8.38 MB
Binary file not shown.

docker/truffle-config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,11 @@ module.exports = {
5959
// Configure your compilers
6060
compilers: {
6161
solc: {
62-
version: "0.6.4", // Fetch exact version from solc-bin (default: truffle's version)
62+
version: "native", // Fetch exact version from solc-bin (default: truffle's version)
6363
docker: false, // Use "0.5.1" you've installed locally with docker (default: false)
6464
settings: { // See the solidity docs for advice about optimization and evmVersion
65-
optimizer: {
65+
compilerPath: "./solc-0.6.4", // Path to the solc binary
66+
optimizer: {
6667
enabled: true,
6768
runs: 200
6869
}

tests/truffle/docker-compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: "3"
2-
31
services:
42
genesis:
53
image: bsc-genesis

0 commit comments

Comments
 (0)