Skip to content

Commit

Permalink
chore: docs
Browse files Browse the repository at this point in the history
  • Loading branch information
matstyler committed Feb 22, 2024
1 parent 7002461 commit 997bad8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions wallets/metamask/src/metamask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ export class MetaMask {
await this.notificationPage.signMessage(this.extensionId)
}

/**
* Confirms a signature request with potential risk.
*/
async confirmSignatureWithRisk() {
if (!this.extensionId) {
throw NO_EXTENSION_ID_ERROR
Expand Down Expand Up @@ -357,11 +360,18 @@ export class MetaMask {
await this.homePage.resetAccount()
}

/**
* Enables the eth_sign feature in MetaMask advanced settings.
* This method is marked as unsafe because enabling eth_sign can have security implications.
*/
async unsafe_enableEthSign() {
await this.homePage.openSettings()
await this.settingsPage.enableEthSign()
}

/**
* Disables the eth_sign feature in MetaMask advanced settings.
*/
async disableEthSign() {
await this.homePage.openSettings()
await this.settingsPage.disableEthSign()
Expand Down

0 comments on commit 997bad8

Please sign in to comment.