@toruslabs/ethereum-controllers 5.0.2 → 5.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2767,7 +2767,7 @@ class PersonalMessageController extends AbstractMessageController {
2767
2767
  this.signPersonalMessage = signPersonalMessage;
2768
2768
  this.initialize();
2769
2769
  }
2770
- async processPersonalSignMessage(messageId) {
2770
+ async processSignPersonalMessage(messageId) {
2771
2771
  try {
2772
2772
  const msgObject = this.getMessage(messageId);
2773
2773
  const cleanMsgParams = await this.approveMessage(messageId, msgObject.messageParams);
@@ -2921,7 +2921,7 @@ class TypedMessageController extends AbstractMessageController {
2921
2921
  this.signTypedData = signTypedData;
2922
2922
  this.initialize();
2923
2923
  }
2924
- async processPersonalSignMessage(messageId) {
2924
+ async processSignTypedMessage(messageId) {
2925
2925
  try {
2926
2926
  const msgObject = this.getMessage(messageId);
2927
2927
  const cleanMsgParams = await this.approveMessage(messageId, msgObject.messageParams);
@@ -4232,7 +4232,6 @@ class PreferencesController extends base_controllers_namespaceObject.BasePrefere
4232
4232
  }
4233
4233
  async fetchEtherscanTx(parameters) {
4234
4234
  try {
4235
- // TODO: rewrite this api to use chainId
4236
4235
  const url = new URL(`${this.config.api}/etherscan`);
4237
4236
  Object.keys(parameters).forEach(key => url.searchParams.append(key, parameters[key]));
4238
4237
  const response = await (0,http_helpers_namespaceObject.get)(url.href, this.headers(parameters.selectedAddress));