You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
@metamask/assets-controllers
Added
The method getERC20TokenName has been added to AssetsContractController (#1127)
This method gets the token name from the token contract
Changed
BREAKING: The tokens controller now requires onTokenListStateChange and getERC20TokenName as constructor parameters (#1127)
The getERC20TokenName method is used to get the token name for tokens added via wallet_watchAsset
The onTokenListStateChange method is used to trigger a name update when the token list changes. On each change, token names are copied from the token list if they're missing from token controller state.
BREAKING: The signature of the tokens controller method addToken has changed
The fourth and fifth positional parameters (image and interactingAddress) have been replaced by an options object
The new options parameter includes the image and interactingAddress properties, and a new name property
The token detection controller now sets the token name when new tokens are detected (#1127)
The Token type now includes an optional name field (#1127)
The controller messenger will no longer throw when an event subscriber throws an error. Calls to publish (either within controllers or on a messenger instance directly) will no longer throw errors.
Errors are thrown in a timeout handler so that they can still be logged and captured.
@metamask/signature-controller
Added
Add messages getter that returns all messages (#1469)
Add setMessageMetadata method for customizing the metadata for an individual message (#1469)