mirror of https://github.com/status-im/web3.js.git
removed unused function
This commit is contained in:
parent
9d5b602023
commit
a63d604c57
|
@ -1051,11 +1051,10 @@ var isArray = function (object) {
|
||||||
*/
|
*/
|
||||||
var isJson = function (str) {
|
var isJson = function (str) {
|
||||||
try {
|
try {
|
||||||
JSON.parse(str);
|
return !!JSON.parse(str);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
@ -1384,15 +1383,6 @@ var utils = require('../utils/utils');
|
||||||
var eventImpl = require('./event');
|
var eventImpl = require('./event');
|
||||||
var signature = require('./signature');
|
var signature = require('./signature');
|
||||||
|
|
||||||
var exportNatspecGlobals = function (vars) {
|
|
||||||
// it's used byt natspec.js
|
|
||||||
// TODO: figure out better way to solve this
|
|
||||||
web3._currentContractAbi = vars.abi;
|
|
||||||
web3._currentContractAddress = vars.address;
|
|
||||||
web3._currentContractMethodName = vars.method;
|
|
||||||
web3._currentContractMethodParams = vars.params;
|
|
||||||
};
|
|
||||||
|
|
||||||
var addFunctionRelatedPropertiesToContract = function (contract) {
|
var addFunctionRelatedPropertiesToContract = function (contract) {
|
||||||
|
|
||||||
contract.call = function (options) {
|
contract.call = function (options) {
|
||||||
|
@ -1454,13 +1444,6 @@ var addFunctionsToContract = function (contract, desc, address) {
|
||||||
|
|
||||||
if (isTransaction) {
|
if (isTransaction) {
|
||||||
|
|
||||||
exportNatspecGlobals({
|
|
||||||
abi: desc,
|
|
||||||
address: address,
|
|
||||||
method: method.name,
|
|
||||||
params: params
|
|
||||||
});
|
|
||||||
|
|
||||||
// transactions do not have any output, cause we do not know, when they will be processed
|
// transactions do not have any output, cause we do not know, when they will be processed
|
||||||
web3.eth.sendTransaction(options);
|
web3.eth.sendTransaction(options);
|
||||||
return;
|
return;
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1051,11 +1051,10 @@ var isArray = function (object) {
|
||||||
*/
|
*/
|
||||||
var isJson = function (str) {
|
var isJson = function (str) {
|
||||||
try {
|
try {
|
||||||
JSON.parse(str);
|
return !!JSON.parse(str);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
@ -1384,15 +1383,6 @@ var utils = require('../utils/utils');
|
||||||
var eventImpl = require('./event');
|
var eventImpl = require('./event');
|
||||||
var signature = require('./signature');
|
var signature = require('./signature');
|
||||||
|
|
||||||
var exportNatspecGlobals = function (vars) {
|
|
||||||
// it's used byt natspec.js
|
|
||||||
// TODO: figure out better way to solve this
|
|
||||||
web3._currentContractAbi = vars.abi;
|
|
||||||
web3._currentContractAddress = vars.address;
|
|
||||||
web3._currentContractMethodName = vars.method;
|
|
||||||
web3._currentContractMethodParams = vars.params;
|
|
||||||
};
|
|
||||||
|
|
||||||
var addFunctionRelatedPropertiesToContract = function (contract) {
|
var addFunctionRelatedPropertiesToContract = function (contract) {
|
||||||
|
|
||||||
contract.call = function (options) {
|
contract.call = function (options) {
|
||||||
|
@ -1454,13 +1444,6 @@ var addFunctionsToContract = function (contract, desc, address) {
|
||||||
|
|
||||||
if (isTransaction) {
|
if (isTransaction) {
|
||||||
|
|
||||||
exportNatspecGlobals({
|
|
||||||
abi: desc,
|
|
||||||
address: address,
|
|
||||||
method: method.name,
|
|
||||||
params: params
|
|
||||||
});
|
|
||||||
|
|
||||||
// transactions do not have any output, cause we do not know, when they will be processed
|
// transactions do not have any output, cause we do not know, when they will be processed
|
||||||
web3.eth.sendTransaction(options);
|
web3.eth.sendTransaction(options);
|
||||||
return;
|
return;
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -26,15 +26,6 @@ var utils = require('../utils/utils');
|
||||||
var eventImpl = require('./event');
|
var eventImpl = require('./event');
|
||||||
var signature = require('./signature');
|
var signature = require('./signature');
|
||||||
|
|
||||||
var exportNatspecGlobals = function (vars) {
|
|
||||||
// it's used byt natspec.js
|
|
||||||
// TODO: figure out better way to solve this
|
|
||||||
web3._currentContractAbi = vars.abi;
|
|
||||||
web3._currentContractAddress = vars.address;
|
|
||||||
web3._currentContractMethodName = vars.method;
|
|
||||||
web3._currentContractMethodParams = vars.params;
|
|
||||||
};
|
|
||||||
|
|
||||||
var addFunctionRelatedPropertiesToContract = function (contract) {
|
var addFunctionRelatedPropertiesToContract = function (contract) {
|
||||||
|
|
||||||
contract.call = function (options) {
|
contract.call = function (options) {
|
||||||
|
@ -96,13 +87,6 @@ var addFunctionsToContract = function (contract, desc, address) {
|
||||||
|
|
||||||
if (isTransaction) {
|
if (isTransaction) {
|
||||||
|
|
||||||
exportNatspecGlobals({
|
|
||||||
abi: desc,
|
|
||||||
address: address,
|
|
||||||
method: method.name,
|
|
||||||
params: params
|
|
||||||
});
|
|
||||||
|
|
||||||
// transactions do not have any output, cause we do not know, when they will be processed
|
// transactions do not have any output, cause we do not know, when they will be processed
|
||||||
web3.eth.sendTransaction(options);
|
web3.eth.sendTransaction(options);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue