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

remove not existing assigns in html code #2268

Merged
merged 3 commits into from
Jun 28, 2019
Merged

Conversation

ayrat555
Copy link
Contributor

fixes

2019-06-28T11:08:39.926 [error] #PID<0.24465.30> running BlockScoutWeb.Endpoint (connection #PID<0.24400.30>, stream id 4) terminated
Server: 52.2.163.93:80 (http)
Request: GET /tokens/0xb22c9f8e45b3e351a955d89d777d2ccf14915268/token_transfers
** (exit) an exception was raised:
    ** (ArgumentError) assign @address not available in eex template.

Please make sure all proper assigns have been set. If this
is a child template, ensure assigns are given explicitly by
the parent template as they are not automatically forwarded.

Available assigns: [:conn, :current_path, :token, :total_token_holders, :total_token_transfers, :view_module, :view_template]

        (phoenix_html) lib/phoenix_html/engine.ex:132: Phoenix.HTML.Engine.fetch_assign!/2
        (block_scout_web) lib/block_scout_web/templates/tokens/transfer/index.html.eex:33: BlockScoutWeb.Tokens.TransferView."index.html"/1
        (block_scout_web) lib/block_scout_web/templates/layout/app.html.eex:43: BlockScoutWeb.LayoutView."app.html"/1
        (phoenix) lib/phoenix/view.ex:399: Phoenix.View.render_to_iodata/3
        (phoenix) lib/phoenix/controller.ex:729: Phoenix.Controller.__put_render__/5
        (block_scout_web) lib/block_scout_web/endpoint.ex:1: BlockScoutWeb.Endpoint.instrument/4
        (phoenix) lib/phoenix/controller.ex:746: Phoenix.Controller.instrument_render_and_send/4
        (block_scout_web) lib/block_scout_web/controllers/tokens/transfer_controller.ex:1: BlockScoutWeb.Tokens.TransferController.action/2

Changelog

  • remove not existing assigns in html code

@vbaranov
Copy link
Member

vbaranov commented Jun 28, 2019

@ayrat555 gettext test failed. Please fix it.

@coveralls
Copy link

coveralls commented Jun 28, 2019

Pull Request Test Coverage Report for Build 4ded59ec-6951-47cf-8acc-b4e70ef66720

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 81.066%

Totals Coverage Status
Change from base Build 98af1acd-1a40-4cb1-9514-ab4b55e613e8: 0.0%
Covered Lines: 5108
Relevant Lines: 6301

💛 - Coveralls

@vbaranov vbaranov merged commit f0b4d9e into master Jun 28, 2019
@vbaranov vbaranov deleted the ab-fix-not-existing-assigns branch June 28, 2019 20:48
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.

4 participants