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); + }; }