@safe-global/safe-apps-provider
Advanced tools
Comparing version 0.18.1-next.0 to 0.18.1
# @safe-global/safe-apps-provider | ||
## 0.18.1-next.0 | ||
## 0.18.1 | ||
### Patch Changes | ||
- Updated dependencies [9fb93b1] | ||
- @safe-global/safe-apps-sdk@9.0.0-next.0 | ||
- d6baa64: fallback `value` and `data` were overwritten with `undefined` | ||
@@ -10,0 +9,0 @@ ## 0.18.0 |
@@ -63,3 +63,4 @@ "use strict"; | ||
case 'eth_sendTransaction': | ||
const tx = Object.assign({ value: '0', data: '0x' }, params[0]); | ||
// `value` or `data` can be explicitly set as `undefined` for example in Viem. The spread will overwrite the fallback value. | ||
const tx = Object.assign(Object.assign({}, params[0]), { value: params[0].value || '0', data: params[0].data || '0x' }); | ||
// Some ethereum libraries might pass the gas as a hex-encoded string | ||
@@ -66,0 +67,0 @@ // We need to convert it to a number because the SDK expects a number and our backend only supports |
{ | ||
"name": "@safe-global/safe-apps-provider", | ||
"version": "0.18.1-next.0", | ||
"version": "0.18.1", | ||
"description": "A provider wrapper of Safe Apps SDK", | ||
@@ -29,3 +29,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@safe-global/safe-apps-sdk": "^9.0.0-next.0", | ||
"@safe-global/safe-apps-sdk": "^8.1.0", | ||
"events": "^3.3.0" | ||
@@ -32,0 +32,0 @@ }, |
@@ -84,6 +84,7 @@ import SafeAppsSDK, { SafeInfo, Web3TransactionObject } from '@safe-global/safe-apps-sdk'; | ||
case 'eth_sendTransaction': | ||
// `value` or `data` can be explicitly set as `undefined` for example in Viem. The spread will overwrite the fallback value. | ||
const tx = { | ||
value: '0', | ||
data: '0x', | ||
...params[0], | ||
value: params[0].value || '0', | ||
data: params[0].data || '0x', | ||
}; | ||
@@ -90,0 +91,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
33525
430
+ Added@noble/curves@1.2.0(transitive)
+ Added@noble/hashes@1.3.2(transitive)
+ Added@safe-global/safe-apps-sdk@8.1.0(transitive)
+ Added@scure/bip32@1.3.2(transitive)
+ Added@scure/bip39@1.2.1(transitive)
+ Addedabitype@0.9.8(transitive)
+ Addedisows@1.0.3(transitive)
+ Addedviem@1.21.4(transitive)
+ Addedws@8.13.0(transitive)
- Removed@noble/curves@1.4.0(transitive)
- Removed@noble/hashes@1.4.01.5.0(transitive)
- Removed@safe-global/safe-apps-sdk@9.1.0(transitive)
- Removed@scure/bip32@1.4.0(transitive)
- Removed@scure/bip39@1.4.0(transitive)
- Removedabitype@1.0.5(transitive)
- Removedisows@1.0.4(transitive)
- Removedviem@2.21.6(transitive)
- Removedwebauthn-p256@0.0.5(transitive)
- Removedws@8.17.1(transitive)