@metamask-previews/transaction-controller 43.0.0-preview-3da4ce1b → 43.0.0-preview-77c9cd86
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 +7 -0
- package/dist/TransactionController.cjs +0 -1
- 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 +0 -1
- package/dist/TransactionController.mjs.map +1 -1
- package/dist/helpers/MethodDataHelper.cjs +24 -22
- package/dist/helpers/MethodDataHelper.cjs.map +1 -1
- package/dist/helpers/MethodDataHelper.d.cts +2 -3
- package/dist/helpers/MethodDataHelper.d.cts.map +1 -1
- package/dist/helpers/MethodDataHelper.d.mts +2 -3
- package/dist/helpers/MethodDataHelper.d.mts.map +1 -1
- package/dist/helpers/MethodDataHelper.mjs +24 -22
- package/dist/helpers/MethodDataHelper.mjs.map +1 -1
- package/package.json +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Replaced `eth-method-registry` dependency with `@ethersproject/abi` for ABI method lookups ([#5203](https://github.com/MetaMask/core/pull/5203))
|
|
13
|
+
- The `MethodDataHelper` class now uses ethers.js `Interface` class to parse and lookup method signatures
|
|
14
|
+
- Method data is now derived directly from the ABI interface
|
|
15
|
+
- The structure of returned method data remains compatible with previous implementation
|
|
16
|
+
|
|
10
17
|
## [43.0.0]
|
|
11
18
|
|
|
12
19
|
### Added
|
|
@@ -274,7 +274,6 @@ class TransactionController extends base_controller_1.BaseController {
|
|
|
274
274
|
});
|
|
275
275
|
gasFeePoller.hub.on('transaction-updated', __classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_onGasFeePollerTransactionUpdate).bind(this));
|
|
276
276
|
__classPrivateFieldSet(this, _TransactionController_methodDataHelper, new MethodDataHelper_1.MethodDataHelper({
|
|
277
|
-
getProvider: (networkClientId) => __classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_getProvider).call(this, { networkClientId }),
|
|
278
277
|
getState: () => this.state.methodData,
|
|
279
278
|
}), "f");
|
|
280
279
|
__classPrivateFieldGet(this, _TransactionController_methodDataHelper, "f").hub.on('update', ({ fourBytePrefix, methodData }) => {
|