mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-28 14:34:48 +00:00
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) {
|
ContractClass[abi.name] = function (options, cb) {
|
||||||
let ref = ContractClass.events[abi.name];
|
let ref = ContractClass.events[abi.name];
|
||||||
return ref.apply(ref, [options, cb]);
|
return ref.apply(ref, [options, cb]);
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -107,7 +107,8 @@ EmbarkJS.Contract = function(options) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var messageEvents = function () {
|
var messageEvents = function () {
|
||||||
this.cb = function() {};
|
this.cb = function () {
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
messageEvents.prototype.then = function (cb) {
|
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);
|
resolve(transaction);
|
||||||
} else {
|
} else {
|
||||||
getConfirmation();
|
getConfirmation();
|
||||||
@ -343,7 +344,7 @@ EmbarkJS.Names.Providers = {};
|
|||||||
|
|
||||||
EmbarkJS.Names.registerProvider = function (providerName, obj) {
|
EmbarkJS.Names.registerProvider = function (providerName, obj) {
|
||||||
EmbarkJS.Names.Providers[providerName] = obj;
|
EmbarkJS.Names.Providers[providerName] = obj;
|
||||||
}
|
};
|
||||||
|
|
||||||
EmbarkJS.Names.setProvider = function (provider, options) {
|
EmbarkJS.Names.setProvider = function (provider, options) {
|
||||||
let providerObj = this.Providers[provider];
|
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")');
|
throw new Error('Name system provider not set; e.g EmbarkJS.Names.setProvider("ens")');
|
||||||
}
|
}
|
||||||
return this.currentNameSystems.resolve(name);
|
return this.currentNameSystems.resolve(name);
|
||||||
}
|
};
|
||||||
|
|
||||||
// the reverse of resolve, resolves using an identifier to get to a name
|
// the reverse of resolve, resolves using an identifier to get to a name
|
||||||
EmbarkJS.Names.lookup = function (identifier) {
|
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")');
|
throw new Error('Name system provider not set; e.g EmbarkJS.Names.setProvider("ens")');
|
||||||
}
|
}
|
||||||
return this.currentNameSystems.lookup(identifier);
|
return this.currentNameSystems.lookup(identifier);
|
||||||
}
|
};
|
||||||
|
|
||||||
// To Implement
|
// To Implement
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user