making lint happy

This commit is contained in:
debris 2015-10-08 16:19:43 +08:00
parent 553ab1d431
commit 5564011743
4 changed files with 3 additions and 6 deletions

View File

@ -1,7 +1,4 @@
var Web3 = require('./lib/web3'); var Web3 = require('./lib/web3');
var namereg = require('./lib/web3/namereg');
//Web3.prototype.eth.sendIBANTransaction = require('./lib/web3/transfer');
// dont override global variable // dont override global variable
if (typeof window !== 'undefined' && typeof window.web3 === 'undefined') { if (typeof window !== 'undefined' && typeof window.web3 === 'undefined') {

View File

@ -61,7 +61,7 @@ function Web3 (provider) {
this._extend({ this._extend({
properties: properties() properties: properties()
}); });
}; }
Web3.prototype.setProvider = function (provider) { Web3.prototype.setProvider = function (provider) {
this._requestManager.setProvider(provider); this._requestManager.setProvider(provider);

View File

@ -119,7 +119,7 @@ var checkForContractAddress = function(contract, callback){
contract._web3.eth.getTransactionReceipt(contract.transactionHash, function(e, receipt){ contract._web3.eth.getTransactionReceipt(contract.transactionHash, function(e, receipt){
if(receipt && !callbackFired) { if(receipt && !callbackFired) {
web3.eth.getCode(receipt.contractAddress, function(e, code){ contract._web3.eth.getCode(receipt.contractAddress, function(e, code){
/*jshint maxcomplexity: 5 */ /*jshint maxcomplexity: 5 */
if(callbackFired) if(callbackFired)

View File

@ -47,7 +47,7 @@ var transfer = function (web3, from, to, value, callback) {
return deposit(web3, from, address, value, iban.client()); return deposit(web3, from, address, value, iban.client());
} }
namereg.addr(iban.institution(), function (err, address) { web3.eth.icapNamereg.addr(iban.institution(), function (err, address) {
return deposit(web3, from, address, value, iban.client(), callback); return deposit(web3, from, address, value, iban.client(), callback);
}); });