Skip to content

65.0.0

Choose a tag to compare

@github-actions github-actions released this 12 Jul 17:44
· 5265 commits to main since this release
0c87b9b

@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)

@metamask/base-controller

Changed

  • Prevent event publish from throwing error (#1475)
    • 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)