@metamask-previews/transaction-controller 41.1.0-preview-e644b4f → 41.1.0-preview-5047333

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.
@@ -1902,7 +1902,8 @@ _TransactionController_internalEvents = new WeakMap(), _TransactionController_me
1902
1902
  if (existingTransaction) {
1903
1903
  return;
1904
1904
  }
1905
- const isInteractionWithInternalAccount = __classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_getInternalAccounts).call(this).some((account) => account.address === to);
1905
+ const internalAccounts = await __classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_getInternalAccounts).call(this);
1906
+ const isInteractionWithInternalAccount = internalAccounts.some((account) => account.address === to);
1906
1907
  // If the interaction is with an internal account, we don't need to check the account address relationship
1907
1908
  // no warning will be shown
1908
1909
  if (isInteractionWithInternalAccount) {
@@ -2012,7 +2013,8 @@ _TransactionController_internalEvents = new WeakMap(), _TransactionController_me
2012
2013
  }
2013
2014
  submitHistory.unshift(submitHistoryEntry);
2014
2015
  });
2015
- }, _TransactionController_getInternalAccounts = function _TransactionController_getInternalAccounts() {
2016
- return this.messagingSystem.call('AccountsController:listAccounts');
2016
+ }, _TransactionController_getInternalAccounts = async function _TransactionController_getInternalAccounts() {
2017
+ const internalAccountsList = await this.messagingSystem.call('AccountsController:listAccounts');
2018
+ return internalAccountsList;
2017
2019
  };
2018
2020
  //# sourceMappingURL=TransactionController.cjs.map