web3
Advanced tools
Comparing version 0.15.3 to 0.16.0
{ | ||
"name": "web3", | ||
"namespace": "ethereum", | ||
"version": "0.15.3", | ||
"version": "0.16.0", | ||
"description": "Ethereum Compatible JavaScript API", | ||
@@ -6,0 +6,0 @@ "main": [ |
{ | ||
"version": "0.15.3" | ||
"version": "0.16.0" | ||
} |
@@ -99,4 +99,8 @@ /* | ||
Web3.prototype.isIBAN = utils.isIBAN; | ||
Web3.prototype.sha3 = sha3; | ||
Web3.prototype.sha3 = function(string, options) { | ||
return '0x' + sha3(string, options); | ||
}; | ||
/** | ||
@@ -103,0 +107,0 @@ * Transforms direct icap to address |
@@ -271,3 +271,3 @@ /* | ||
} | ||
throw 'invalid address'; | ||
throw new Error('invalid address'); | ||
}; | ||
@@ -274,0 +274,0 @@ |
@@ -28,2 +28,3 @@ /* | ||
var Property = require('../property'); | ||
var formatters = require('../formatters'); | ||
@@ -58,8 +59,16 @@ function Personal(web3) { | ||
params: 3, | ||
inputFormatter: [null, null, null] | ||
inputFormatter: [formatters.inputAddressFormatter, null, null] | ||
}); | ||
var lockAccount = new Method({ | ||
name: 'lockAccount', | ||
call: 'personal_lockAccount', | ||
params: 1, | ||
inputFormatter: [formatters.inputAddressFormatter] | ||
}); | ||
return [ | ||
newAccount, | ||
unlockAccount | ||
unlockAccount, | ||
lockAccount | ||
]; | ||
@@ -66,0 +75,0 @@ }; |
/* jshint ignore:start */ | ||
Package.describe({ | ||
name: 'ethereum:web3', | ||
version: '0.15.3', | ||
version: '0.16.0', | ||
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": "0.15.3", | ||
"version": "0.16.0", | ||
"description": "Ethereum JavaScript API, middleware to talk to a ethereum node over RPC", | ||
@@ -6,0 +6,0 @@ "main": "./index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
4045918
45723