Use longVersion from solc-bin

pull/1/head
Alex Beregszaszi 8 years ago
parent 593e47f10a
commit 038c1d5b56
  1. 10
      src/app.js

@ -589,17 +589,9 @@ var run = function () {
}) })
$.getJSON('https://ethereum.github.io/solc-bin/bin/list.json').done(function (data) { $.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) // populate version dropdown with all available compiler versions (descending order)
$.each(data.builds.slice().reverse(), function (i, build) { $.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) $('#versionSelector').attr('disabled', false)

Loading…
Cancel
Save