@startbahn/startrail-sdk-js 1.25.0 → 1.25.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -165593,7 +165593,7 @@ class Service {
165593
165593
  }
165594
165594
  try {
165595
165595
  const signature = yield this.wallet.signMessage(messageHash, message, (customMessage.prefix || undefined));
165596
- return { signature, messageHash, message: customMessage.message || message };
165596
+ return { signature, prefix: customMessage.prefix };
165597
165597
  }
165598
165598
  catch (error) {
165599
165599
  return this._throwExceptionOrReturnFalse(error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startbahn/startrail-sdk-js",
3
- "version": "1.25.0",
3
+ "version": "1.25.1",
4
4
  "description": "Startrail Api for JS SDK",
5
5
  "main": "dist/startrail-sdk.js",
6
6
  "unpkg": "dist/startrail-sdk.js",
@@ -31,7 +31,7 @@ declare module '@startbahn/startrail-sdk-js' {
31
31
  * Sign message with the Ethereum private key associated to your wallet
32
32
  * @throws Will throw an error
33
33
  */
34
- signMessage(message: string, isPopup?: boolean): Promise<Type.SignMessage | false>;
34
+ signMessage(message: string, isPopup?: boolean): Promise<Type.MessageSignature | false>;
35
35
  /**
36
36
  * Create SRR
37
37
  * Send tx to Startrail Ethereum smart-contract with meta-tx in which signature is generated by your private key
@@ -286,10 +286,9 @@ declare module '@startbahn/startrail-sdk-js/types' {
286
286
  hashFlag?: boolean;
287
287
  body: object;
288
288
  }
289
- export interface SignMessage {
289
+ export interface MessageSignature {
290
290
  signature: string;
291
- messageHash: any;
292
- message: string;
291
+ prefix?: string;
293
292
  }
294
293
  export interface startrailLUWAddress {
295
294
  startrailLUWAddress: string;
@@ -646,7 +645,7 @@ declare module '@startbahn/startrail-sdk-js/service' {
646
645
  * Sign message with the Ethereum private key associated to your wallet
647
646
  * @throws Will throw an error
648
647
  */
649
- signMessage(message: string, isPopup?: boolean): Promise<Type.SignMessage | false>;
648
+ signMessage(message: string, isPopup?: boolean): Promise<Type.MessageSignature | false>;
650
649
  /**
651
650
  * Sign typed data according to EIP-712 standard
652
651
  */