mirror of https://github.com/embarklabs/embark.git
lint is king
This commit is contained in:
parent
ede4926069
commit
2efea55d2b
|
@ -124,7 +124,7 @@ class Test {
|
||||||
|
|
||||||
config(options, callback) {
|
config(options, callback) {
|
||||||
const self = this;
|
const self = this;
|
||||||
if (typeof(options) === 'function') {
|
if (typeof (options) === 'function') {
|
||||||
callback = options;
|
callback = options;
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
@ -229,7 +229,7 @@ class Test {
|
||||||
{from: self.web3.eth.defaultAccount, gas: 6000000}));
|
{from: self.web3.eth.defaultAccount, gas: 6000000}));
|
||||||
self.contracts[contractName].address = contract.deployedAddress;
|
self.contracts[contractName].address = contract.deployedAddress;
|
||||||
if (self.contracts[contractName].options) {
|
if (self.contracts[contractName].options) {
|
||||||
self.contracts[contractName].options.from = self.contracts[contractName].options.from || web3.eth.defaultAccount;
|
self.contracts[contractName].options.from = self.contracts[contractName].options.from || self.web3.eth.defaultAccount;
|
||||||
self.contracts[contractName].options.data = data;
|
self.contracts[contractName].options.data = data;
|
||||||
}
|
}
|
||||||
eachCb();
|
eachCb();
|
||||||
|
@ -276,7 +276,7 @@ class Test {
|
||||||
{from: this.web3.eth.defaultAccount, gas: 6000000});
|
{from: this.web3.eth.defaultAccount, gas: 6000000});
|
||||||
this.contracts[contractName].address = contract.address;
|
this.contracts[contractName].address = contract.address;
|
||||||
this.contracts[contractName].options.data = contract.code;
|
this.contracts[contractName].options.data = contract.code;
|
||||||
web3.eth.getAccounts().then((accounts) => {
|
this.web3.eth.getAccounts().then((accounts) => {
|
||||||
this.contracts[contractName].options.from = contract.from || accounts[0];
|
this.contracts[contractName].options.from = contract.from || accounts[0];
|
||||||
});
|
});
|
||||||
return this.contracts[contractName];
|
return this.contracts[contractName];
|
||||||
|
|
Loading…
Reference in New Issue