@safe-global/safe-apps-provider
Advanced tools
Comparing version 0.16.0 to 0.17.0
@@ -1,3 +0,21 @@ | ||
# @gnosis.pm/safe-apps-provider | ||
# @safe-global/safe-apps-provider | ||
## 0.17.0 | ||
### Minor Changes | ||
- bdae5af: Signing methods return the signature instead of `0x` | ||
### Patch Changes | ||
- Updated dependencies [bdae5af] | ||
- @safe-global/safe-apps-sdk@7.11.0 | ||
## 0.16.1 | ||
### Patch Changes | ||
- Updated dependencies [d759219] | ||
- @safe-global/safe-apps-sdk@7.10.1 | ||
## 0.16.0 | ||
@@ -4,0 +22,0 @@ |
@@ -38,4 +38,5 @@ "use strict"; | ||
} | ||
await this.sdk.txs.signMessage(message); | ||
return '0x'; | ||
const response = await this.sdk.txs.signMessage(message); | ||
const signature = 'signature' in response ? response.signature : undefined; | ||
return signature || '0x'; | ||
} | ||
@@ -47,4 +48,5 @@ case 'eth_sign': { | ||
} | ||
await this.sdk.txs.signMessage(messageHash); | ||
return '0x'; | ||
const response = await this.sdk.txs.signMessage(messageHash); | ||
const signature = 'signature' in response ? response.signature : undefined; | ||
return signature || '0x'; | ||
} | ||
@@ -58,4 +60,5 @@ case 'eth_signTypedData': | ||
} | ||
await this.sdk.txs.signTypedMessage(parsedTypedData); | ||
return '0x'; | ||
const response = await this.sdk.txs.signTypedMessage(parsedTypedData); | ||
const signature = 'signature' in response ? response.signature : undefined; | ||
return signature || '0x'; | ||
} | ||
@@ -62,0 +65,0 @@ case 'eth_sendTransaction': |
{ | ||
"name": "@safe-global/safe-apps-provider", | ||
"version": "0.16.0", | ||
"version": "0.17.0", | ||
"description": "A provider wrapper of Safe Apps SDK", | ||
@@ -28,3 +28,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@safe-global/safe-apps-sdk": "7.10.0", | ||
"@safe-global/safe-apps-sdk": "7.11.0", | ||
"events": "^3.3.0" | ||
@@ -31,0 +31,0 @@ }, |
@@ -50,5 +50,6 @@ import SafeAppsSDK, { SafeInfo, Web3TransactionObject } from '@safe-global/safe-apps-sdk'; | ||
await this.sdk.txs.signMessage(message); | ||
const response = await this.sdk.txs.signMessage(message); | ||
const signature = 'signature' in response ? response.signature : undefined; | ||
return '0x'; | ||
return signature || '0x'; | ||
} | ||
@@ -63,5 +64,6 @@ | ||
await this.sdk.txs.signMessage(messageHash); | ||
const response = await this.sdk.txs.signMessage(messageHash); | ||
const signature = 'signature' in response ? response.signature : undefined; | ||
return '0x'; | ||
return signature || '0x'; | ||
} | ||
@@ -78,5 +80,5 @@ | ||
await this.sdk.txs.signTypedMessage(parsedTypedData); | ||
return '0x'; | ||
const response = await this.sdk.txs.signTypedMessage(parsedTypedData); | ||
const signature = 'signature' in response ? response.signature : undefined; | ||
return signature || '0x'; | ||
} | ||
@@ -83,0 +85,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32580
428
+ Added@safe-global/safe-apps-sdk@7.11.0(transitive)
- Removed@safe-global/safe-apps-sdk@7.10.0(transitive)