mirror of
https://github.com/status-im/web3.js.git
synced 2025-02-23 19:48:13 +00:00
release 0.16.0
This commit is contained in:
parent
7b8e30a897
commit
ae1ace97a1
20
dist/web3-light.js
vendored
20
dist/web3-light.js
vendored
@ -2573,7 +2573,11 @@ Web3.prototype.isAddress = utils.isAddress;
|
||||
Web3.prototype.isChecksumAddress = utils.isChecksumAddress;
|
||||
Web3.prototype.toChecksumAddress = utils.toChecksumAddress;
|
||||
Web3.prototype.isIBAN = utils.isIBAN;
|
||||
Web3.prototype.sha3 = sha3;
|
||||
|
||||
|
||||
Web3.prototype.sha3 = function(string, options) {
|
||||
return '0x' + sha3(string, options);
|
||||
};
|
||||
|
||||
/**
|
||||
* Transforms direct icap to address
|
||||
@ -3879,7 +3883,7 @@ var inputAddressFormatter = function (address) {
|
||||
} else if (utils.isAddress(address)) {
|
||||
return '0x' + address;
|
||||
}
|
||||
throw 'invalid address';
|
||||
throw new Error('invalid address');
|
||||
};
|
||||
|
||||
|
||||
@ -5499,6 +5503,7 @@ module.exports = Net;
|
||||
|
||||
var Method = require('../method');
|
||||
var Property = require('../property');
|
||||
var formatters = require('../formatters');
|
||||
|
||||
function Personal(web3) {
|
||||
this._requestManager = web3._requestManager;
|
||||
@ -5528,7 +5533,14 @@ var methods = function () {
|
||||
name: 'unlockAccount',
|
||||
call: 'personal_unlockAccount',
|
||||
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 [
|
||||
@ -5549,7 +5561,7 @@ var properties = function () {
|
||||
|
||||
module.exports = Personal;
|
||||
|
||||
},{"../method":36,"../property":44}],41:[function(require,module,exports){
|
||||
},{"../formatters":30,"../method":36,"../property":44}],41:[function(require,module,exports){
|
||||
/*
|
||||
This file is part of web3.js.
|
||||
|
||||
|
8
dist/web3-light.min.js
vendored
8
dist/web3-light.min.js
vendored
File diff suppressed because one or more lines are too long
20
dist/web3.js
vendored
20
dist/web3.js
vendored
@ -2573,7 +2573,11 @@ Web3.prototype.isAddress = utils.isAddress;
|
||||
Web3.prototype.isChecksumAddress = utils.isChecksumAddress;
|
||||
Web3.prototype.toChecksumAddress = utils.toChecksumAddress;
|
||||
Web3.prototype.isIBAN = utils.isIBAN;
|
||||
Web3.prototype.sha3 = sha3;
|
||||
|
||||
|
||||
Web3.prototype.sha3 = function(string, options) {
|
||||
return '0x' + sha3(string, options);
|
||||
};
|
||||
|
||||
/**
|
||||
* Transforms direct icap to address
|
||||
@ -3879,7 +3883,7 @@ var inputAddressFormatter = function (address) {
|
||||
} else if (utils.isAddress(address)) {
|
||||
return '0x' + address;
|
||||
}
|
||||
throw 'invalid address';
|
||||
throw new Error('invalid address');
|
||||
};
|
||||
|
||||
|
||||
@ -5499,6 +5503,7 @@ module.exports = Net;
|
||||
|
||||
var Method = require('../method');
|
||||
var Property = require('../property');
|
||||
var formatters = require('../formatters');
|
||||
|
||||
function Personal(web3) {
|
||||
this._requestManager = web3._requestManager;
|
||||
@ -5528,7 +5533,14 @@ var methods = function () {
|
||||
name: 'unlockAccount',
|
||||
call: 'personal_unlockAccount',
|
||||
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 [
|
||||
@ -5549,7 +5561,7 @@ var properties = function () {
|
||||
|
||||
module.exports = Personal;
|
||||
|
||||
},{"../method":36,"../property":44}],41:[function(require,module,exports){
|
||||
},{"../formatters":30,"../method":36,"../property":44}],41:[function(require,module,exports){
|
||||
/*
|
||||
This file is part of web3.js.
|
||||
|
||||
|
8
dist/web3.js.map
vendored
8
dist/web3.js.map
vendored
File diff suppressed because one or more lines are too long
10
dist/web3.min.js
vendored
10
dist/web3.min.js
vendored
File diff suppressed because one or more lines are too long
@ -25,6 +25,7 @@
|
||||
|
||||
var Method = require('../method');
|
||||
var Property = require('../property');
|
||||
var formatters = require('../formatters');
|
||||
|
||||
function Personal(web3) {
|
||||
this._requestManager = web3._requestManager;
|
||||
@ -54,7 +55,14 @@ var methods = function () {
|
||||
name: 'unlockAccount',
|
||||
call: 'personal_unlockAccount',
|
||||
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 [
|
||||
|
Loading…
x
Reference in New Issue
Block a user