From d10b85fc010eb09d03ff6dd027b7c0d25ee6ca00 Mon Sep 17 00:00:00 2001 From: Gavrila Andrei Date: Wed, 11 Dec 2024 19:07:05 +0200 Subject: [PATCH] Fix sign message --- .../providers-strategy/WalletConnectProviderStrategy.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core/providers-strategy/WalletConnectProviderStrategy.ts b/src/core/providers-strategy/WalletConnectProviderStrategy.ts index 5c552a9..6e71c47 100644 --- a/src/core/providers-strategy/WalletConnectProviderStrategy.ts +++ b/src/core/providers-strategy/WalletConnectProviderStrategy.ts @@ -1,3 +1,4 @@ +import { Message } from '@multiversx/sdk-core/out'; import { SessionEventTypes, SessionTypes @@ -83,6 +84,7 @@ export class WalletConnectProviderStrategy { const provider = { ...this.provider } as unknown as IProvider; provider.login = this.login; provider.logout = this.logout; + provider.signMessage = this.signMessage; return provider; }; @@ -267,4 +269,8 @@ export class WalletConnectProviderStrategy { return false; } }; + + private signMessage = (messageToSign: Message) => { + return this.provider!.signMessage(messageToSign); + }; }