ethereumjs-tx
Advanced tools
Comparing version 0.4.0 to 0.5.1
@@ -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
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
675506
21591
Updatedethereumjs-util@^1.3.0