Skip to content

Commit

Permalink
Correct version list url (TrueFiEng#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
sz-piotr authored Nov 24, 2020
1 parent 769cd41 commit 8849236
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions waffle-compiler/src/compileSolcjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async function resolveSemverVersion(version: string) {
return item.substring('soljson-'.length, item.length - '.js'.length);
}

const VERSION_LIST_URL = 'https://raw.githubusercontent.com/ethereum/solc-bin/gh-pages/bin/list.json';
const VERSION_LIST_URL = 'https://solc-bin.ethereum.org/bin/list.json';
let cache: any = undefined;

async function fetchReleases() {
Expand Down Expand Up @@ -78,7 +78,7 @@ async function cacheRemoteVersion(version: string, cacheDirectory: string) {

const filePath = path.join(solcCacheDirectory, `${version}.js`);
const file = fs.createWriteStream(filePath);
const url = `https://raw.githubusercontent.com/ethereum/solc-bin/gh-pages/bin/soljson-${version}.js`;
const url = `https://solc-bin.ethereum.org/bin/soljson-${version}.js`;

await new Promise((resolve, reject) => {
https.get(url, (response) => {
Expand Down
2 changes: 1 addition & 1 deletion waffle-compiler/test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-r ts-node/register/transpile-only
--timeout 50000
--no-warnings
test/**/*.{js,ts}
test/**/*.ts

0 comments on commit 8849236

Please sign in to comment.