(ESlint) fix styling issues

This commit is contained in:
Roman Storm 2018-01-03 20:51:10 -08:00
parent 8bbfe4a1ea
commit e47c4ec16d
6 changed files with 11 additions and 11 deletions

View File

@ -1,7 +1,7 @@
import React from 'react'; import React from "react";
import { inject, observer } from "mobx-react"; import { inject, observer } from "mobx-react";
import Select from 'react-select'; import Select from "react-select";
import 'react-select/dist/react-select.css'; import "react-select/dist/react-select.css";
@inject("ballotStore", "contractsStore") @inject("ballotStore", "contractsStore")
@observer @observer

View File

@ -80,6 +80,6 @@ export default class VotingToChangeKeys {
async getBallotLimit(_votingKey) { async getBallotLimit(_votingKey) {
const currentLimit = await this.votingToChangeKeysInstance.methods.getBallotLimitPerValidator().call(); const currentLimit = await this.votingToChangeKeysInstance.methods.getBallotLimitPerValidator().call();
return currentLimit - await this.getValidatorActiveBallots(_votingKey) return currentLimit - await this.getValidatorActiveBallots(_votingKey);
} }
} }

View File

@ -72,6 +72,6 @@ export default class VotingToChangeMinThreshold {
async getBallotLimit(_votingKey) { async getBallotLimit(_votingKey) {
const currentLimit = await this.votingToChangeMinThresholdInstance.methods.getBallotLimitPerValidator().call(); const currentLimit = await this.votingToChangeMinThresholdInstance.methods.getBallotLimitPerValidator().call();
return currentLimit - await this.getValidatorActiveBallots(_votingKey) return currentLimit - await this.getValidatorActiveBallots(_votingKey);
} }
} }

View File

@ -76,6 +76,6 @@ export default class VotingToChangeProxy {
async getBallotLimit(_votingKey) { async getBallotLimit(_votingKey) {
const currentLimit = await this.votingToChangeProxyInstance.methods.getBallotLimitPerValidator().call(); const currentLimit = await this.votingToChangeProxyInstance.methods.getBallotLimitPerValidator().call();
return currentLimit - await this.getValidatorActiveBallots(_votingKey) return currentLimit - await this.getValidatorActiveBallots(_votingKey);
} }
} }

View File

@ -44,9 +44,9 @@ class AppMainRouter extends Component {
contractsStore.getAllProxyBallots(); contractsStore.getAllProxyBallots();
await contractsStore.setMiningKey(web3Config); await contractsStore.setMiningKey(web3Config);
contractsStore.getValidatorActiveBallots(); contractsStore.getValidatorActiveBallots();
contractsStore.getAllValidatorMetadata() contractsStore.getAllValidatorMetadata();
console.log("votingKey", contractsStore.votingKey) console.log("votingKey", contractsStore.votingKey);
console.log("miningKey", contractsStore.miningKey) console.log("miningKey", contractsStore.miningKey);
}).catch((error) => { }).catch((error) => {
commonStore.hideLoading(); commonStore.hideLoading();
swal({ swal({

View File

@ -127,12 +127,12 @@ class BallotStore {
this[parent][field] = newVal; this[parent][field] = newVal;
else else
this[field] = newVal; this[field] = newVal;
console.log("ballot metadata", field, parent?this[parent][field]:this[field]) console.log("ballot metadata", field, parent?this[parent][field]:this[field]);
} }
@action("change ballot metadata") @action("change ballot metadata")
setMiningKey = (value) => { setMiningKey = (value) => {
this.ballotKeys.miningKey = value; this.ballotKeys.miningKey = value;
console.log("ballot mining key", toJS(value)) console.log("ballot mining key", toJS(value));
} }
} }