Comparing version 1.0.0-beta.6 to 1.0.0-beta.7
{ | ||
"namespace": "ethereum", | ||
"name": "web3", | ||
"version": "1.0.0-beta.6", | ||
"version": "1.0.0-beta.7", | ||
"description": "Ethereum JavaScript API", | ||
@@ -6,0 +6,0 @@ "license": "LGPL-3.0", |
{ | ||
"version": "1.0.0-beta.6", | ||
"version": "1.0.0-beta.7", | ||
"lerna": "2.0.0", | ||
@@ -4,0 +4,0 @@ "packages": [ |
/* jshint ignore:start */ | ||
Package.describe({ | ||
name: 'ethereum:web3', | ||
version: '1.0.0-beta.6', | ||
version: '1.0.0-beta.7', | ||
summary: 'Ethereum JavaScript API, middleware to talk to a ethreum node over RPC', | ||
@@ -6,0 +6,0 @@ git: 'https://github.com/ethereum/ethereum.js', |
{ | ||
"name": "web3", | ||
"namespace": "ethereum", | ||
"version": "1.0.0-beta.6", | ||
"version": "1.0.0-beta.7", | ||
"description": "Ethereum JavaScript API", | ||
@@ -6,0 +6,0 @@ "license": "LGPL-3.0", |
@@ -394,3 +394,12 @@ /* | ||
// SENDS the SIGNED SIGNATURE | ||
var sendSignedTx = function(sign){ | ||
payload.method = 'eth_sendRawTransaction'; | ||
payload.params = [sign.rawTransaction]; | ||
method.requestManager.send(payload, sendTxCallback); | ||
}; | ||
var sendRequest = function(payload, method) { | ||
@@ -411,10 +420,5 @@ | ||
return method.eth.accounts.signTransaction(tx, wallet.privateKey) | ||
.then(function(sign){ | ||
var signature = method.eth.accounts.signTransaction(tx, wallet.privateKey); | ||
payload.method = 'eth_sendRawTransaction'; | ||
payload.params = [sign.rawTransaction]; | ||
method.requestManager.send(payload, sendTxCallback); | ||
}); | ||
return (_.isFunction(signature.then)) ? signature.then(sendSignedTx) : sendSignedTx(signature); | ||
} | ||
@@ -421,0 +425,0 @@ |
@@ -209,3 +209,2 @@ /* | ||
this.connection.send(JSON.stringify(payload)); | ||
@@ -212,0 +211,0 @@ this._addResponseCallback(payload, callback); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1865794
6968