@metamask/keyring-controller
Advanced tools
Comparing version 8.0.2 to 8.0.3
@@ -9,2 +9,7 @@ # Changelog | ||
## [8.0.3] | ||
### Changed | ||
- `signTransaction` now accepts an optional `opts: Record<string, unknown>` argument to support `signTransaction` from `Keyring` type ([#1789](https://github.com/MetaMask/core/pull/1789)) | ||
- Bump dependency and peer dependency on `@metamask/preferences-controller` to ^4.4.3 | ||
## [8.0.2] | ||
@@ -217,3 +222,4 @@ ### Changed | ||
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@8.0.2...HEAD | ||
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@8.0.3...HEAD | ||
[8.0.3]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@8.0.2...@metamask/keyring-controller@8.0.3 | ||
[8.0.2]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@8.0.1...@metamask/keyring-controller@8.0.2 | ||
@@ -220,0 +226,0 @@ [8.0.1]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@8.0.0...@metamask/keyring-controller@8.0.1 |
@@ -361,5 +361,6 @@ import type { TxData, TypedTransaction } from '@ethereumjs/tx'; | ||
* @param from - Address to sign from, should be in keychain. | ||
* @param opts - An optional options object. | ||
* @returns Promise resolving to a signed transaction string. | ||
*/ | ||
signTransaction(transaction: TypedTransaction, from: string): Promise<TxData>; | ||
signTransaction(transaction: TypedTransaction, from: string, opts?: Record<string, unknown>): Promise<TxData>; | ||
/** | ||
@@ -366,0 +367,0 @@ * Attempts to decrypt the current vault and load its keyrings, |
@@ -561,6 +561,7 @@ "use strict"; | ||
* @param from - Address to sign from, should be in keychain. | ||
* @param opts - An optional options object. | ||
* @returns Promise resolving to a signed transaction string. | ||
*/ | ||
signTransaction(transaction, from) { | ||
return __classPrivateFieldGet(this, _KeyringController_keyring, "f").signTransaction(transaction, from); | ||
signTransaction(transaction, from, opts) { | ||
return __classPrivateFieldGet(this, _KeyringController_keyring, "f").signTransaction(transaction, from, opts); | ||
} | ||
@@ -567,0 +568,0 @@ /** |
{ | ||
"name": "@metamask/keyring-controller", | ||
"version": "8.0.2", | ||
"version": "8.0.3", | ||
"description": "Stores identities seen in the wallet and manages interactions such as signing", | ||
@@ -36,3 +36,3 @@ "keywords": [ | ||
"@metamask/message-manager": "^7.3.5", | ||
"@metamask/preferences-controller": "^4.4.2", | ||
"@metamask/preferences-controller": "^4.4.3", | ||
"@metamask/utils": "^8.1.0", | ||
@@ -62,3 +62,3 @@ "async-mutex": "^0.2.6", | ||
"peerDependencies": { | ||
"@metamask/preferences-controller": "^4.4.2" | ||
"@metamask/preferences-controller": "^4.4.3" | ||
}, | ||
@@ -65,0 +65,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
141294
1272