Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ethereumjs-tx

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ethereumjs-tx - npm Package Compare versions

Comparing version 0.4.0 to 0.5.1

6

index.js

@@ -53,9 +53,9 @@ const BN = require('bn.js')

name: 'r',
pad: true,
length: 32,
allowLess: true,
default: ethUtil.zeros(32)
}, {
name: 's',
pad: true,
length: 32,
allowLess: true,
default: ethUtil.zeros(32)

@@ -174,3 +174,3 @@ }]

.mul(new BN(this.gasPrice)) //there is no muln func yet
.addn(this.value)
.add(new BN(this.value))
}

@@ -177,0 +177,0 @@

{
"name": "ethereumjs-tx",
"version": "0.4.0",
"version": "0.5.1",
"description": "An simple module for creating, manipulating and signing ethereum transactions",

@@ -20,3 +20,3 @@ "main": "index.js",

"ethereum-common": "0.0.3",
"ethereumjs-util": "^1.2.0",
"ethereumjs-util": "^1.3.0",
"rlp": "^1.0.0",

@@ -23,0 +23,0 @@ "secp256k1": "0.0.15"

@@ -31,3 +31,3 @@ # SYNOPSIS [![Build Status](https://travis-ci.org/ethereum/ethereumjs-tx.svg)](https://travis-ci.org/ethereum/ethereumjs-tx)

# Bowser
# BOWSER
For standalone use in the browser inculde [./dist/ethereumjs-tx.js](https://github.com/ethereum/ethereumjs-tx/blob/master/dist/ethereumjs-tx.js)

@@ -34,0 +34,0 @@ This will give you a gobal varible `EthTx` to use. It will also create the globals `Buffer` and `ethUtil`

@@ -37,4 +37,4 @@ var Tx = require('../index.js');

t.equal(ethUtil.bufferToInt(tx.nonce), Number(tTx.nonce), 'nonce');
t.equal(tx.r.toString('hex'), ethUtil.pad(new Buffer(addPad(tTx.r.slice(2)), 'hex'), 32).toString('hex'), 'r');
t.equal(tx.s.toString('hex'), ethUtil.pad(new Buffer(addPad(tTx.s.slice(2)), 'hex'), 32).toString('hex'), 's');
t.equal(tx.r.toString('hex'), addPad(tTx.r.slice(2)), 'r');
t.equal(tx.s.toString('hex'), addPad(tTx.s.slice(2)), 's');
t.equal(ethUtil.bufferToInt(tx.v), Number(tTx.v), 'v');

@@ -41,0 +41,0 @@ if(tTx.to[1] === 'x'){

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