MetaMask / core

This monorepo is a collection of packages used across multiple MetaMask clients
MIT License
293 stars 188 forks source link

Demonstrate state as optional in controller guidelines #4910

Open mcmire opened 2 weeks ago

mcmire commented 2 weeks ago

Explanation

In various examples in the controller guidelines, the state controller option was not optional, even though there is a guideline that says it should be. This commit updates the documentation so that it shown as optional. It also clarifies the examples to use real names instead of "dummy" names.

References

I discovered that the examples were incorrect when reviewing this PR.

Changelog

N/A

Checklist