Skip to content

Metamask Saving Data From Network Form #11010

Open
@mjosephd

Description

@mjosephd

I do realize this may not be a issue technically, but I opened a support ticket without any response and couldn't find any other channel for communication/ Thus posting here.

So basically I am trying to do some changes on the metamask extension, add a new field to the Network Settings, a checkbox specifically.

So I managed to add this checkbox on the screen (use the appropriate storybook component, etc). However, I am now struggling to figure out how metamask persists its data permanently and loads them.

Basically I added a new field, that field is visible to the user, it also gets sent as part of the UPDATE_METAMASK_STATE. It is a sibling field of blockExplorerUrl, so I sort of modeled it after that. However the value does not seem to get saved to the store that persists the data. So my question is

  1. How do I persist data in general and when a new field is added to the network-form.component.js
  2. How is data persisted and loaded into metamask (data like settings, list of custom networks)

Also is there a slack or anything that is available for community devs?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions