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

Add env variable to hide Add to MM button #6843

Merged
merged 1 commit into from
Feb 12, 2023
Merged

Conversation

vbaranov
Copy link
Member

@vbaranov vbaranov commented Feb 8, 2023

Resolves #6477

Motivation

Some chains don't need "Add to MM button", e.g. default MM chains, and hiding this button shouldn't break smart-contract interaction.

Changelog

DISABLE_ADD_TO_MM_BUTTON introduced. If true, "Add to MM button" doesn't appear. Smart-contract interaction still works since chain_id and json_rpc hidden inputs moved to app.html.eex. Docs update blockscout/docs#113.

Checklist for your Pull Request (PR)

@vbaranov vbaranov merged commit 3370122 into master Feb 12, 2023
@vbaranov vbaranov deleted the vb-hide-mm-button branch February 12, 2023 20:40
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.

Add a possibility to hide "Add to MM" button
2 participants