1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-25 11:28:51 +01:00

Fix error in console on rejecting signature request (#18614)

This commit is contained in:
Jyoti Puri 2023-04-18 05:58:28 +05:30 committed by GitHub
parent e5835ac459
commit 00d2d43d45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -412,27 +412,30 @@ export default class SignController extends BaseControllerV2<
* Used to cancel a message submitted via eth_sign.
*
* @param msgId - The id of the message to cancel.
* @returns A full state update.
*/
cancelMessage(msgId: string) {
this._cancelAbstractMessage(this._messageManager, msgId);
return this._cancelAbstractMessage(this._messageManager, msgId);
}
/**
* Used to cancel a personal_sign type message.
*
* @param msgId - The ID of the message to cancel.
* @returns A full state update.
*/
cancelPersonalMessage(msgId: string) {
this._cancelAbstractMessage(this._personalMessageManager, msgId);
return this._cancelAbstractMessage(this._personalMessageManager, msgId);
}
/**
* Used to cancel a eth_signTypedData type message.
*
* @param msgId - The ID of the message to cancel.
* @returns A full state update.
*/
cancelTypedMessage(msgId: string) {
this._cancelAbstractMessage(this._typedMessageManager, msgId);
return this._cancelAbstractMessage(this._typedMessageManager, msgId);
}
/**