Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix contract read page error #4465

Merged
merged 1 commit into from
Jul 30, 2021
Merged

Fix contract read page error #4465

merged 1 commit into from
Jul 30, 2021

Conversation

vbaranov
Copy link
Member

@vbaranov vbaranov commented Jul 30, 2021

Motivation

Request: GET /smart-contracts?hash=0xb538938335f8f79a5879c6ce6682fc72de08c630&type=regular&action=read
** (exit) an exception was raised:
    ** (Protocol.UndefinedError) protocol Enumerable not implemented for {:error, "(-32015) VM execution error. (Reverted 0x6c61737444617465206d75737420626520626967676572207468616e20666972737444617465)"} of type Tuple. This protocol is implemented for the following type(s): Indexer.BoundQueue, Ecto.Adapters.SQL.Stream, Postgrex.Stream, DBConnection.Stream, DBConnection.PrepareStream, Timex.Interval, Flow, HashSet, Range, Map, Function, List, Stream, Date.Range, HashDict, GenEvent.Stream, MapSet, File.Stream, IO.Stream
        (elixir 1.11.4) lib/enum.ex:1: Enumerable.impl_for!/1
        (elixir 1.11.4) lib/enum.ex:141: Enumerable.reduce/3
        (elixir 1.11.4) lib/enum.ex:369: Enum.any?/2
        (block_scout_web 0.0.1) lib/block_scout_web/templates/smart_contract/_functions.html.eex:98: anonymous fn/3 in BlockScoutWeb.SmartContractView."_functions.html"/1
        (elixir 1.11.4) lib/enum.ex:2193: Enum."-reduce/3-lists^foldl/2-0-"/3
        (block_scout_web 0.0.1) lib/block_scout_web/templates/smart_contract/_functions.html.eex:31: BlockScoutWeb.SmartContractView."_functions.html"/1
        (phoenix 1.5.6) lib/phoenix/view.ex:472: Phoenix.View.render_to_iodata/3
        (phoenix 1.5.6) lib/phoenix/controller.ex:776: Phoenix.Controller.render_and_send/4
        (block_scout_web 0.0.1) lib/block_scout_web/controllers/smart_contract_controller.ex:1: BlockScoutWeb.SmartContractController.action/2
        (block_scout_web 0.0.1) lib/block_scout_web/controllers/smart_contract_controller.ex:1: BlockScoutWeb.SmartContractController.phoenix_controller_pipeline/2
        (phoenix 1.5.6) lib/phoenix/router.ex:352: Phoenix.Router.__call__/2
        (phoenix 1.5.6) lib/phoenix/router/route.ex:41: Phoenix.Router.Route.call/2
        (phoenix 1.5.6) lib/phoenix/router.ex:352: Phoenix.Router.__call__/2
        (block_scout_web 0.0.1) lib/block_scout_web/endpoint.ex:1: BlockScoutWeb.Endpoint.plug_builder_call/2
        (block_scout_web 0.0.1) lib/plug/debugger.ex:136: BlockScoutWeb.Endpoint."call (overridable 3)"/2
        (block_scout_web 0.0.1) lib/block_scout_web/endpoint.ex:1: BlockScoutWeb.Endpoint."call (overridable 4)"/2
        (block_scout_web 0.0.1) lib/spandex_phoenix.ex:156: BlockScoutWeb.Endpoint.call/2
        (phoenix 1.5.6) lib/phoenix/endpoint/cowboy2_handler.ex:65: Phoenix.Endpoint.Cowboy2Handler.init/4
        (cowboy 2.8.0) /Users/barrakuda/Documents/code/blockscout/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
        (cowboy 2.8.0) /Users/barrakuda/Documents/code/blockscout/deps/cowboy/src/cowboy_stream_h.erl:300: :cowboy_stream_h.execute/3

Checklist for your Pull Request (PR)

@vbaranov vbaranov merged commit 64debea into master Jul 30, 2021
@vbaranov vbaranov deleted the vb-fixcontract-error branch July 30, 2021 18:31
sidhujag pushed a commit to syscoin/blockscout that referenced this pull request Aug 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant