Socket
Socket
Sign inDemoInstall

@safe-global/safe-apps-provider

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@safe-global/safe-apps-provider - npm Package Compare versions

Comparing version 0.18.1-next.0 to 0.18.1

5

CHANGELOG.md
# @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

3

dist/provider.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc