@metamask/transaction-controller 48.0.0 → 48.1.0
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/CHANGELOG.md +8 -1
- package/dist/TransactionController.cjs +1 -0
- 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 +1 -0
- package/dist/TransactionController.mjs.map +1 -1
- package/dist/utils/validation.cjs +6 -3
- package/dist/utils/validation.cjs.map +1 -1
- package/dist/utils/validation.d.cts +3 -1
- package/dist/utils/validation.d.cts.map +1 -1
- package/dist/utils/validation.d.mts +3 -1
- package/dist/utils/validation.d.mts.map +1 -1
- package/dist/utils/validation.mjs +6 -3
- package/dist/utils/validation.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [48.1.0]
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Prevent external transactions to internal accounts if `data` included ([#5418](https://github.com/MetaMask/core/pull/5418))
|
|
15
|
+
|
|
10
16
|
## [48.0.0]
|
|
11
17
|
|
|
12
18
|
### Changed
|
|
@@ -1326,7 +1332,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
1326
1332
|
|
|
1327
1333
|
All changes listed after this point were applied to this package following the monorepo conversion.
|
|
1328
1334
|
|
|
1329
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@48.
|
|
1335
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@48.1.0...HEAD
|
|
1336
|
+
[48.1.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@48.0.0...@metamask/transaction-controller@48.1.0
|
|
1330
1337
|
[48.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@47.0.0...@metamask/transaction-controller@48.0.0
|
|
1331
1338
|
[47.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@46.0.0...@metamask/transaction-controller@47.0.0
|
|
1332
1339
|
[46.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@45.1.0...@metamask/transaction-controller@46.0.0
|
|
@@ -372,6 +372,7 @@ class TransactionController extends base_controller_1.BaseController {
|
|
|
372
372
|
const selectedAddress = __classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_getSelectedAccount).call(this).address;
|
|
373
373
|
const internalAccounts = __classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_getInternalAccounts).call(this);
|
|
374
374
|
await (0, validation_1.validateTransactionOrigin)({
|
|
375
|
+
data: txParams.data,
|
|
375
376
|
from: txParams.from,
|
|
376
377
|
internalAccounts,
|
|
377
378
|
origin,
|