Socket
Socket
Sign inDemoInstall

connext

Package Overview
Dependencies
307
Maintainers
4
Versions
160
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.1.5 to 4.1.6

.bash_history

4

dist/controllers/DepositController.js

@@ -143,4 +143,4 @@ "use strict";

`what's needed (${args.depositTokenUser}), approving more`);
const gasLimit = lib_1.toBN(Math.ceil((yield token.estimate.approve(prev.contractAddress, args.depositTokenUser)).toNumber() * 1.5));
const approveTx = yield token.approve(prev.contractAddress, args.depositTokenUser, { gasLimit, gasPrice });
const gasLimit = lib_1.toBN(Math.ceil((yield token.estimate.approve(prev.contractAddress, ethers_1.ethers.constants.MaxUint256)).toNumber() * 1.5));
const approveTx = yield token.approve(prev.contractAddress, ethers_1.ethers.constants.MaxUint256, { gasLimit, gasPrice });
yield this.connext.wallet.provider.waitForTransaction(approveTx.hash);

@@ -147,0 +147,0 @@ }

{
"name": "connext",
"description": "Shared code between wallet and hub",
"version": "4.1.5",
"version": "4.1.6",
"main": "dist/index.js",

@@ -6,0 +6,0 @@ "types": "types/index.d.ts",

@@ -181,7 +181,7 @@ import { ethers as eth } from 'ethers'

const gasLimit = toBN(Math.ceil((
await token.estimate.approve(prev.contractAddress, args.depositTokenUser)
await token.estimate.approve(prev.contractAddress, eth.constants.MaxUint256)
).toNumber() * 1.5))
const approveTx = await token.approve(
prev.contractAddress, args.depositTokenUser, { gasLimit, gasPrice },
prev.contractAddress, eth.constants.MaxUint256, { gasLimit, gasPrice },
)

@@ -188,0 +188,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc