diff --git a/apps/remix-ide/src/blockchain/providers/injected.ts b/apps/remix-ide/src/blockchain/providers/injected.ts index 8020848f28..cb460af13c 100644 --- a/apps/remix-ide/src/blockchain/providers/injected.ts +++ b/apps/remix-ide/src/blockchain/providers/injected.ts @@ -43,6 +43,7 @@ export class InjectedProvider { try { const personal = new Personal(this.executionContext.web3().currentProvider) message = isHexString(message) ? message : Web3.utils.utf8ToHex(message) + // see https://docs.metamask.io/wallet/reference/json-rpc-methods/personal_sign/ personal.sign(message, account, '') .then(signedData => cb(undefined, bytesToHex(messageHash), signedData)) .catch(error => cb(error, bytesToHex(messageHash), undefined))