mirror of https://github.com/status-im/web3.js.git
fixed test
This commit is contained in:
parent
ed0431c00b
commit
fc9e96473a
|
@ -5520,13 +5520,15 @@ var methods = function () {
|
||||||
var newAccount = new Method({
|
var newAccount = new Method({
|
||||||
name: 'newAccount',
|
name: 'newAccount',
|
||||||
call: 'personal_newAccount',
|
call: 'personal_newAccount',
|
||||||
params: 1
|
params: 1,
|
||||||
|
inputFormatter: [null]
|
||||||
});
|
});
|
||||||
|
|
||||||
var unlockAccount = new Method({
|
var unlockAccount = new Method({
|
||||||
name: 'unlockAccount',
|
name: 'unlockAccount',
|
||||||
call: 'personal_unlockAccount',
|
call: 'personal_unlockAccount',
|
||||||
params: 2
|
params: 3,
|
||||||
|
inputFormatter: [null, null, null]
|
||||||
});
|
});
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
@ -5544,6 +5546,7 @@ var properties = function () {
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
module.exports = Personal;
|
module.exports = Personal;
|
||||||
|
|
||||||
},{"../method":36,"../property":44}],41:[function(require,module,exports){
|
},{"../method":36,"../property":44}],41:[function(require,module,exports){
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -5520,13 +5520,15 @@ var methods = function () {
|
||||||
var newAccount = new Method({
|
var newAccount = new Method({
|
||||||
name: 'newAccount',
|
name: 'newAccount',
|
||||||
call: 'personal_newAccount',
|
call: 'personal_newAccount',
|
||||||
params: 1
|
params: 1,
|
||||||
|
inputFormatter: [null]
|
||||||
});
|
});
|
||||||
|
|
||||||
var unlockAccount = new Method({
|
var unlockAccount = new Method({
|
||||||
name: 'unlockAccount',
|
name: 'unlockAccount',
|
||||||
call: 'personal_unlockAccount',
|
call: 'personal_unlockAccount',
|
||||||
params: 2
|
params: 3,
|
||||||
|
inputFormatter: [null, null, null]
|
||||||
});
|
});
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
@ -5544,6 +5546,7 @@ var properties = function () {
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
module.exports = Personal;
|
module.exports = Personal;
|
||||||
|
|
||||||
},{"../method":36,"../property":44}],41:[function(require,module,exports){
|
},{"../method":36,"../property":44}],41:[function(require,module,exports){
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -46,13 +46,15 @@ var methods = function () {
|
||||||
var newAccount = new Method({
|
var newAccount = new Method({
|
||||||
name: 'newAccount',
|
name: 'newAccount',
|
||||||
call: 'personal_newAccount',
|
call: 'personal_newAccount',
|
||||||
params: 1
|
params: 1,
|
||||||
|
inputFormatter: [null]
|
||||||
});
|
});
|
||||||
|
|
||||||
var unlockAccount = new Method({
|
var unlockAccount = new Method({
|
||||||
name: 'unlockAccount',
|
name: 'unlockAccount',
|
||||||
call: 'personal_unlockAccount',
|
call: 'personal_unlockAccount',
|
||||||
params: 2
|
params: 3,
|
||||||
|
inputFormatter: [null, null, null]
|
||||||
});
|
});
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
@ -70,4 +72,5 @@ var properties = function () {
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
module.exports = Personal;
|
module.exports = Personal;
|
||||||
|
|
|
@ -6,7 +6,13 @@ var method = 'unlockAccount';
|
||||||
|
|
||||||
var tests = [{
|
var tests = [{
|
||||||
args: ['0x47d33b27bb249a2dbab4c0612bf9caf4c1950855', 'P@ssw0rd!'],
|
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,
|
result: true,
|
||||||
formattedResult: true,
|
formattedResult: true,
|
||||||
call: 'personal_'+ method
|
call: 'personal_'+ method
|
||||||
|
|
Loading…
Reference in New Issue