Socket
Socket
Sign inDemoInstall

@trufflesuite/web3-provider-engine

Package Overview
Dependencies
Maintainers
9
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trufflesuite/web3-provider-engine - npm Package Compare versions

Comparing version 15.0.13-1 to 15.0.13-2.beta

5

dist/es5/subproviders/nonce-tracker.js

@@ -5,3 +5,4 @@ "use strict";

var Transaction = require('ethereumjs-tx');
var _require = require('@ethereumjs/tx'),
TransactionFactory = _require.TransactionFactory;

@@ -67,3 +68,3 @@ var ethUtil = require('ethereumjs-util');

var rawData = Buffer.from(ethUtil.stripHexPrefix(rawTx), 'hex');
var tx = new Transaction(Buffer.from(ethUtil.stripHexPrefix(rawTx), 'hex')); // extract address
var tx = TransactionFactory.fromSerializedData(Buffer.from(ethUtil.stripHexPrefix(rawTx), 'hex')); // extract address

@@ -70,0 +71,0 @@ var address = '0x' + tx.getSenderAddress().toString('hex').toLowerCase(); // extract nonce and increment

4

package.json
{
"name": "@trufflesuite/web3-provider-engine",
"version": "15.0.13-1",
"version": "15.0.13-2.beta",
"description": "Fork of https://github.com/MetaMask/web3-provider-engine",

@@ -30,3 +30,3 @@ "repository": "https://github.com/trufflesuite/provider-engine",

"ethereumjs-block": "^1.2.2",
"ethereumjs-tx": "^1.2.0",
"@ethereumjs/tx": "^3.3.0",
"ethereumjs-util": "^5.1.5",

@@ -33,0 +33,0 @@ "ethereumjs-vm": "^2.3.4",

const inherits = require('util').inherits
const Transaction = require('ethereumjs-tx')
const {TransactionFactory} = require('@ethereumjs/tx')
const ethUtil = require('ethereumjs-util')

@@ -62,3 +62,3 @@ const Subprovider = require('./subprovider.js')

var rawData = Buffer.from(ethUtil.stripHexPrefix(rawTx), 'hex')
var tx = new Transaction(Buffer.from(ethUtil.stripHexPrefix(rawTx), 'hex'))
var tx = TransactionFactory.fromSerializedData(Buffer.from(ethUtil.stripHexPrefix(rawTx), 'hex'))
// extract address

@@ -65,0 +65,0 @@ var address = '0x'+tx.getSenderAddress().toString('hex').toLowerCase()

Sorry, the diff of this file is too big to display

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