@trufflesuite/web3-provider-engine
Advanced tools
Comparing version 15.0.13-1 to 15.0.13-2.beta
@@ -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 |
{ | ||
"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
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
2694987
77170
+ Added@ethereumjs/tx@^3.3.0
+ Added@ethereumjs/common@2.6.5(transitive)
+ Added@ethereumjs/tx@3.5.2(transitive)
+ Added@types/bn.js@5.1.6(transitive)
+ Added@types/node@22.7.1(transitive)
+ Addedcaniuse-lite@1.0.30001663(transitive)
+ Addedcrc-32@1.2.2(transitive)
+ Addedelectron-to-chromium@1.5.28(transitive)
+ Addedethereumjs-util@7.1.5(transitive)
- Removedethereumjs-tx@^1.2.0
- Removed@types/node@22.7.2(transitive)
- Removedcaniuse-lite@1.0.30001664(transitive)
- Removedelectron-to-chromium@1.5.29(transitive)