mirror of https://github.com/status-im/web3.js.git
making lint happy
This commit is contained in:
parent
553ab1d431
commit
5564011743
3
index.js
3
index.js
|
@ -1,7 +1,4 @@
|
|||
var Web3 = require('./lib/web3');
|
||||
var namereg = require('./lib/web3/namereg');
|
||||
|
||||
//Web3.prototype.eth.sendIBANTransaction = require('./lib/web3/transfer');
|
||||
|
||||
// dont override global variable
|
||||
if (typeof window !== 'undefined' && typeof window.web3 === 'undefined') {
|
||||
|
|
|
@ -61,7 +61,7 @@ function Web3 (provider) {
|
|||
this._extend({
|
||||
properties: properties()
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
Web3.prototype.setProvider = function (provider) {
|
||||
this._requestManager.setProvider(provider);
|
||||
|
|
|
@ -119,7 +119,7 @@ var checkForContractAddress = function(contract, callback){
|
|||
contract._web3.eth.getTransactionReceipt(contract.transactionHash, function(e, receipt){
|
||||
if(receipt && !callbackFired) {
|
||||
|
||||
web3.eth.getCode(receipt.contractAddress, function(e, code){
|
||||
contract._web3.eth.getCode(receipt.contractAddress, function(e, code){
|
||||
/*jshint maxcomplexity: 5 */
|
||||
|
||||
if(callbackFired)
|
||||
|
|
|
@ -47,7 +47,7 @@ var transfer = function (web3, from, to, value, callback) {
|
|||
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);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue