New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@gnosis.pm/safe-apps-provider

Package Overview
Dependencies
Maintainers
4
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gnosis.pm/safe-apps-provider - npm Package Compare versions

Comparing version 0.15.0 to 0.15.1

6

CHANGELOG.md
# @gnosis.pm/safe-apps-provider
## 0.15.1
### Patch Changes
- b6c00b8: Convert gaslimit hex-encoded string to a decimal number
## 0.15.0

@@ -4,0 +10,0 @@

@@ -61,2 +61,8 @@ "use strict";

const tx = Object.assign({ value: '0', data: '0x' }, params[0]);
// Some ethereum libraries might pass the gas as a hex-encoded string
// We need to convert it to a number because the SDK expects a number and our backend only supports
// Decimal numbers
if (typeof tx.gas === 'string' && tx.gas.startsWith('0x')) {
tx.gas = parseInt(tx.gas, 16);
}
const resp = await this.sdk.txs.send({

@@ -63,0 +69,0 @@ txs: [tx],

2

package.json
{
"name": "@gnosis.pm/safe-apps-provider",
"version": "0.15.0",
"version": "0.15.1",
"description": "A provider wrapper of Safe Apps SDK",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -88,2 +88,9 @@ import SafeAppsSDK, { SafeInfo, Web3TransactionObject } from '@gnosis.pm/safe-apps-sdk';

// Some ethereum libraries might pass the gas as a hex-encoded string
// We need to convert it to a number because the SDK expects a number and our backend only supports
// Decimal numbers
if (typeof tx.gas === 'string' && tx.gas.startsWith('0x')) {
tx.gas = parseInt(tx.gas, 16);
}
const resp = await this.sdk.txs.send({

@@ -93,2 +100,3 @@ txs: [tx],

});
// Store fake transaction

@@ -95,0 +103,0 @@ this.submittedTxs.set(resp.safeTxHash, {

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