mirror of https://github.com/status-im/web3.js.git
lint
This commit is contained in:
parent
95aabe3305
commit
858d0c62a4
|
@ -3987,11 +3987,7 @@ var contract = require('./contract');
|
|||
var transfer = function (from, iban, value, callback) {
|
||||
var icap = new ICAP(iban);
|
||||
if (!icap.isValid()) {
|
||||
var err = new Error('invalid');
|
||||
if (callback) {
|
||||
return callback(err);
|
||||
}
|
||||
throw err;
|
||||
throw new Error('invalid iban address');
|
||||
}
|
||||
|
||||
if (icap.isDirect()) {
|
||||
|
@ -4022,8 +4018,7 @@ var transferToAddress = function (from, address, value, callback) {
|
|||
return web3.eth.sendTransaction({
|
||||
address: address,
|
||||
from: from,
|
||||
value: value,
|
||||
data: data
|
||||
value: value
|
||||
}, callback);
|
||||
};
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -3987,11 +3987,7 @@ var contract = require('./contract');
|
|||
var transfer = function (from, iban, value, callback) {
|
||||
var icap = new ICAP(iban);
|
||||
if (!icap.isValid()) {
|
||||
var err = new Error('invalid');
|
||||
if (callback) {
|
||||
return callback(err);
|
||||
}
|
||||
throw err;
|
||||
throw new Error('invalid iban address');
|
||||
}
|
||||
|
||||
if (icap.isDirect()) {
|
||||
|
@ -4022,8 +4018,7 @@ var transferToAddress = function (from, address, value, callback) {
|
|||
return web3.eth.sendTransaction({
|
||||
address: address,
|
||||
from: from,
|
||||
value: value,
|
||||
data: data
|
||||
value: value
|
||||
}, callback);
|
||||
};
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -37,11 +37,7 @@ var contract = require('./contract');
|
|||
var transfer = function (from, iban, value, callback) {
|
||||
var icap = new ICAP(iban);
|
||||
if (!icap.isValid()) {
|
||||
var err = new Error('invalid');
|
||||
if (callback) {
|
||||
return callback(err);
|
||||
}
|
||||
throw err;
|
||||
throw new Error('invalid iban address');
|
||||
}
|
||||
|
||||
if (icap.isDirect()) {
|
||||
|
@ -72,8 +68,7 @@ var transferToAddress = function (from, address, value, callback) {
|
|||
return web3.eth.sendTransaction({
|
||||
address: address,
|
||||
from: from,
|
||||
value: value,
|
||||
data: data
|
||||
value: value
|
||||
}, callback);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue