@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.
@@ -2353,7 +2353,7 @@ class PersonalMessageController extends AbstractMessageController {
2353
2353
  this.signPersonalMessage = signPersonalMessage;
2354
2354
  this.initialize();
2355
2355
  }
2356
- async processPersonalSignMessage(messageId) {
2356
+ async processSignPersonalMessage(messageId) {
2357
2357
  try {
2358
2358
  const msgObject = this.getMessage(messageId);
2359
2359
  const cleanMsgParams = await this.approveMessage(messageId, msgObject.messageParams);
@@ -2492,7 +2492,7 @@ class TypedMessageController extends AbstractMessageController {
2492
2492
  this.signTypedData = signTypedData;
2493
2493
  this.initialize();
2494
2494
  }
2495
- async processPersonalSignMessage(messageId) {
2495
+ async processSignTypedMessage(messageId) {
2496
2496
  try {
2497
2497
  const msgObject = this.getMessage(messageId);
2498
2498
  const cleanMsgParams = await this.approveMessage(messageId, msgObject.messageParams);
@@ -3758,7 +3758,6 @@ class PreferencesController extends BasePreferencesController {
3758
3758
  }
3759
3759
  async fetchEtherscanTx(parameters) {
3760
3760
  try {
3761
- // TODO: rewrite this api to use chainId
3762
3761
  const url = new URL(`${this.config.api}/etherscan`);
3763
3762
  Object.keys(parameters).forEach(key => url.searchParams.append(key, parameters[key]));
3764
3763
  const response = await get(url.href, this.headers(parameters.selectedAddress));