fixed test

This commit is contained in:
Fabian Vogelsteller 2016-02-29 16:24:06 +01:00
parent ed0431c00b
commit fc9e96473a
7 changed files with 31 additions and 16 deletions

7
dist/web3-light.js vendored
View File

@ -5520,13 +5520,15 @@ var methods = function () {
var newAccount = new Method({
name: 'newAccount',
call: 'personal_newAccount',
params: 1
params: 1,
inputFormatter: [null]
});
var unlockAccount = new Method({
name: 'unlockAccount',
call: 'personal_unlockAccount',
params: 2
params: 3,
inputFormatter: [null, null, null]
});
return [
@ -5544,6 +5546,7 @@ var properties = function () {
];
};
module.exports = Personal;
},{"../method":36,"../property":44}],41:[function(require,module,exports){

File diff suppressed because one or more lines are too long

7
dist/web3.js vendored
View File

@ -5520,13 +5520,15 @@ var methods = function () {
var newAccount = new Method({
name: 'newAccount',
call: 'personal_newAccount',
params: 1
params: 1,
inputFormatter: [null]
});
var unlockAccount = new Method({
name: 'unlockAccount',
call: 'personal_unlockAccount',
params: 2
params: 3,
inputFormatter: [null, null, null]
});
return [
@ -5544,6 +5546,7 @@ var properties = function () {
];
};
module.exports = Personal;
},{"../method":36,"../property":44}],41:[function(require,module,exports){

4
dist/web3.js.map vendored

File diff suppressed because one or more lines are too long

8
dist/web3.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -46,13 +46,15 @@ var methods = function () {
var newAccount = new Method({
name: 'newAccount',
call: 'personal_newAccount',
params: 1
params: 1,
inputFormatter: [null]
});
var unlockAccount = new Method({
name: 'unlockAccount',
call: 'personal_unlockAccount',
params: 2
params: 3,
inputFormatter: [null, null, null]
});
return [
@ -70,4 +72,5 @@ var properties = function () {
];
};
module.exports = Personal;

View File

@ -6,7 +6,13 @@ var method = 'unlockAccount';
var tests = [{
args: ['0x47d33b27bb249a2dbab4c0612bf9caf4c1950855', 'P@ssw0rd!'],
formattedArgs: ['0x47d33b27bb249a2dbab4c0612bf9caf4c1950855', 'P@ssw0rd!'],
formattedArgs: ['0x47d33b27bb249a2dbab4c0612bf9caf4c1950855', 'P@ssw0rd!', null],
result: true,
formattedResult: true,
call: 'personal_'+ method
},{
args: ['0x47d33b27bb249a2dbab4c0612bf9caf4c1950855', 'P@ssw0rd!', 10],
formattedArgs: ['0x47d33b27bb249a2dbab4c0612bf9caf4c1950855', 'P@ssw0rd!', 10],
result: true,
formattedResult: true,
call: 'personal_'+ method