Skip to content

Commit 941097d

Browse files
committed
Use binaries.soliditylang.org link consistently
1 parent 525a290 commit 941097d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,11 +290,11 @@ Add the version of `solc` you want to use into `index.html`:
290290
```html
291291
<script
292292
type="text/javascript"
293-
src="https://solc-bin.ethereum.org/bin/{{ SOLC VERSION }}.js"
293+
src="https://binaries.soliditylang.org/bin/{{ SOLC VERSION }}.js"
294294
></script>
295295
```
296296

297-
(Alternatively use `https://solc-bin.ethereum.org/bin/soljson-latest.js` to get the latests version.)
297+
(Alternatively use `https://binaries.soliditylang.org/bin/soljson-latest.js` to get the latests version.)
298298

299299
This will load `solc` into the global variable `window.Module`. Then use this inside Javascript as:
300300

@@ -315,7 +315,7 @@ Alternatively, to iterate the releases, one can load `list.js` from `solc-bin`:
315315
```html
316316
<script
317317
type="text/javascript"
318-
src="https://solc-bin.ethereum.org/bin/list.js"
318+
src="https://binaries.soliditylang.org/bin/list.js"
319319
></script>
320320
```
321321

downloadCurrentVersion.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function getVersionList (cb) {
1313
console.log('Retrieving available version list...');
1414

1515
const mem = new MemoryStream(null, { readable: false });
16-
https.get('https://solc-bin.ethereum.org/bin/list.json', function (response) {
16+
https.get('https://binaries.soliditylang.org/bin/list.json', function (response) {
1717
if (response.statusCode !== 200) {
1818
console.log('Error downloading file: ' + response.statusCode);
1919
process.exit(1);
@@ -40,7 +40,7 @@ function downloadBinary (outputName, version, expectedHash) {
4040
});
4141

4242
const file = fs.createWriteStream(outputName, { encoding: 'binary' });
43-
https.get('https://solc-bin.ethereum.org/bin/' + version, function (response) {
43+
https.get('https://binaries.soliditylang.org/bin/' + version, function (response) {
4444
if (response.statusCode !== 200) {
4545
console.log('Error downloading file: ' + response.statusCode);
4646
process.exit(1);

test/compiler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ if (!noRemoteVersions) {
887887
];
888888
for (let version in versions) {
889889
version = versions[version];
890-
execSync(`curl -L -o /tmp/${version}.js https://solc-bin.ethereum.org/bin/soljson-${version}.js`);
890+
execSync(`curl -L -o /tmp/${version}.js https://binaries.soliditylang.org/bin/soljson-${version}.js`);
891891
const newSolc = require('../wrapper.js')(require(`/tmp/${version}.js`));
892892
runTests(newSolc, version);
893893
}

0 commit comments

Comments
 (0)