lint embarkjs
This commit is contained in:
parent
6991215b40
commit
cb8e0e9d3e
13
js/embark.js
13
js/embark.js
|
@ -87,7 +87,7 @@ EmbarkJS.Contract = function(options) {
|
|||
ContractClass[abi.name] = function (options, cb) {
|
||||
let ref = ContractClass.events[abi.name];
|
||||
return ref.apply(ref, [options, cb]);
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -107,7 +107,8 @@ EmbarkJS.Contract = function(options) {
|
|||
}
|
||||
|
||||
var messageEvents = function () {
|
||||
this.cb = function() {};
|
||||
this.cb = function () {
|
||||
};
|
||||
};
|
||||
|
||||
messageEvents.prototype.then = function (cb) {
|
||||
|
@ -165,7 +166,7 @@ EmbarkJS.Contract = function(options) {
|
|||
});
|
||||
};
|
||||
|
||||
if (typeof(transaction) !== "string" || props.constant) {
|
||||
if (typeof transaction !== "string" || props.constant) {
|
||||
resolve(transaction);
|
||||
} else {
|
||||
getConfirmation();
|
||||
|
@ -343,7 +344,7 @@ EmbarkJS.Names.Providers = {};
|
|||
|
||||
EmbarkJS.Names.registerProvider = function (providerName, obj) {
|
||||
EmbarkJS.Names.Providers[providerName] = obj;
|
||||
}
|
||||
};
|
||||
|
||||
EmbarkJS.Names.setProvider = function (provider, options) {
|
||||
let providerObj = this.Providers[provider];
|
||||
|
@ -363,7 +364,7 @@ EmbarkJS.Names.resolve = function(name) {
|
|||
throw new Error('Name system provider not set; e.g EmbarkJS.Names.setProvider("ens")');
|
||||
}
|
||||
return this.currentNameSystems.resolve(name);
|
||||
}
|
||||
};
|
||||
|
||||
// the reverse of resolve, resolves using an identifier to get to a name
|
||||
EmbarkJS.Names.lookup = function (identifier) {
|
||||
|
@ -371,7 +372,7 @@ EmbarkJS.Names.lookup = function(identifier) {
|
|||
throw new Error('Name system provider not set; e.g EmbarkJS.Names.setProvider("ens")');
|
||||
}
|
||||
return this.currentNameSystems.lookup(identifier);
|
||||
}
|
||||
};
|
||||
|
||||
// To Implement
|
||||
|
||||
|
|
Loading…
Reference in New Issue