Skip to content

Commit

Permalink
Fix sign message
Browse files Browse the repository at this point in the history
  • Loading branch information
mgavrila committed Dec 11, 2024
1 parent 51fb9a6 commit d10b85f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/providers-strategy/WalletConnectProviderStrategy.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Message } from '@multiversx/sdk-core/out';
import {
SessionEventTypes,
SessionTypes
Expand Down Expand Up @@ -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;
};
Expand Down Expand Up @@ -267,4 +269,8 @@ export class WalletConnectProviderStrategy {
return false;
}
};

private signMessage = (messageToSign: Message) => {
return this.provider!.signMessage(messageToSign);
};
}

0 comments on commit d10b85f

Please sign in to comment.