From f89f6f4dbe858072c2ed2971e912112a6f4f055a Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 1 Oct 2024 15:27:44 +0200 Subject: [PATCH] use basic sign in the case of injected --- apps/remix-ide/src/blockchain/providers/injected.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/remix-ide/src/blockchain/providers/injected.ts b/apps/remix-ide/src/blockchain/providers/injected.ts index 9e10ebc68d..81ac25a5e1 100644 --- a/apps/remix-ide/src/blockchain/providers/injected.ts +++ b/apps/remix-ide/src/blockchain/providers/injected.ts @@ -41,7 +41,7 @@ export class InjectedProvider { const messageHash = hashPersonalMessage(Buffer.from(message)) try { message = isHexString(message) ? message : Web3.utils.utf8ToHex(message) - this.executionContext.web3().eth.personal.sign(message, account).then((error, signedData) => { + this.executionContext.web3().eth.sign(message, account).then((error, signedData) => { cb(error, bytesToHex(messageHash), signedData) }).catch((error => cb(error))) } catch (e) {