Eslint formatting updates (#4234)
* Eslint updated (newline-after-var) * Fix newline-after-var * Eslint updated (one-var-declaration-per-line) * Fix one-var-declaration-per-line * Fix additional errors * Lint after merge
This commit is contained in:
@@ -115,6 +115,7 @@ class Contract extends Component {
|
||||
setVisibleAccounts (props = this.props) {
|
||||
const { params, setVisibleAccounts } = props;
|
||||
const addresses = [ params.address ];
|
||||
|
||||
setVisibleAccounts(addresses);
|
||||
}
|
||||
|
||||
@@ -335,6 +336,7 @@ class Contract extends Component {
|
||||
.then(results => {
|
||||
const values = queries.reduce((object, fn, idx) => {
|
||||
const key = fn.name;
|
||||
|
||||
object[key] = results[idx];
|
||||
return object;
|
||||
}, {});
|
||||
@@ -451,6 +453,7 @@ class Contract extends Component {
|
||||
}
|
||||
|
||||
const contract = api.newContract(account.meta.abi, params.address);
|
||||
|
||||
contract
|
||||
.subscribe(null, { limit: 25, fromBlock: 0, toBlock: 'pending' }, this._receiveEvents)
|
||||
.then((subscriptionId) => {
|
||||
|
||||
Reference in New Issue
Block a user