Merge pull request #5626 from blockscout/np-fix-vyper-order

Fix vyper compiler versions order
pull/5629/head
Victor Baranov 3 years ago committed by GitHub
commit 1ec23eadf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 4
      apps/explorer/lib/explorer/smart_contract/compiler_version.ex

@ -7,6 +7,7 @@
- [#5540](https://github.com/blockscout/blockscout/pull/5540) - Tx page: scroll to selected tab's data
### Fixes
- [#5626](https://github.com/blockscout/blockscout/pull/5626) - Fix vyper compiler versions order
- [#5603](https://github.com/blockscout/blockscout/pull/5603) - Fix failing verification attempts
- [#5598](https://github.com/blockscout/blockscout/pull/5598) - Fix token dropdown
- [#5592](https://github.com/blockscout/blockscout/pull/5592) - Burn fees for legacy transactions

@ -77,7 +77,9 @@ defmodule Explorer.SmartContract.CompilerVersion do
minor2 = versions2 |> Enum.at(1) |> parse_integer()
patch1 = versions1 |> Enum.at(2) |> String.split("-") |> Enum.at(0) |> parse_integer()
patch2 = versions2 |> Enum.at(2) |> String.split("-") |> Enum.at(0) |> parse_integer()
major1 >= major2 && minor1 >= minor2 && patch1 >= patch2
major1 > major2 || (major1 == major2 && minor1 > minor2) ||
(major1 == major2 && minor1 == minor2 && patch1 > patch2)
end)
end

Loading…
Cancel
Save