@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.
- package/dist/TransactionController.cjs +5 -3
- package/dist/TransactionController.cjs.map +1 -1
- package/dist/TransactionController.d.cts.map +1 -1
- package/dist/TransactionController.d.mts.map +1 -1
- package/dist/TransactionController.mjs +5 -3
- package/dist/TransactionController.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1902,7 +1902,8 @@ _TransactionController_internalEvents = new WeakMap(), _TransactionController_me
|
|
|
1902
1902
|
if (existingTransaction) {
|
|
1903
1903
|
return;
|
|
1904
1904
|
}
|
|
1905
|
-
const
|
|
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
|
-
|
|
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
|