Skip to content

Commit

Permalink
Use longVersion from solc-bin
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Nov 14, 2016
1 parent 593e47f commit 038c1d5
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -589,17 +589,9 @@ var run = function () {
})

$.getJSON('https://ethereum.github.io/solc-bin/bin/list.json').done(function (data) {
function buildVersion (build) {
if (build.prerelease && build.prerelease.length > 0) {
return build.version + '-' + build.prerelease
} else {
return build.version
}
}

// populate version dropdown with all available compiler versions (descending order)
$.each(data.builds.slice().reverse(), function (i, build) {
$('#versionSelector').append(new Option(buildVersion(build), build.path))
$('#versionSelector').append(new Option(build.longVersion, build.path))
})

$('#versionSelector').attr('disabled', false)
Expand Down

0 comments on commit 038c1d5

Please sign in to comment.