diff --git a/src/components/BallotKeysMetadata.jsx b/src/components/BallotKeysMetadata.jsx index 2438ff2..9468d19 100644 --- a/src/components/BallotKeysMetadata.jsx +++ b/src/components/BallotKeysMetadata.jsx @@ -1,7 +1,7 @@ -import React from 'react'; +import React from "react"; import { inject, observer } from "mobx-react"; -import Select from 'react-select'; -import 'react-select/dist/react-select.css'; +import Select from "react-select"; +import "react-select/dist/react-select.css"; @inject("ballotStore", "contractsStore") @observer diff --git a/src/contracts/VotingToChangeKeys.contract.js b/src/contracts/VotingToChangeKeys.contract.js index 62cfd6c..1cea1a4 100644 --- a/src/contracts/VotingToChangeKeys.contract.js +++ b/src/contracts/VotingToChangeKeys.contract.js @@ -80,6 +80,6 @@ export default class VotingToChangeKeys { async getBallotLimit(_votingKey) { const currentLimit = await this.votingToChangeKeysInstance.methods.getBallotLimitPerValidator().call(); - return currentLimit - await this.getValidatorActiveBallots(_votingKey) + return currentLimit - await this.getValidatorActiveBallots(_votingKey); } } diff --git a/src/contracts/VotingToChangeMinThreshold.contract.js b/src/contracts/VotingToChangeMinThreshold.contract.js index 4742b21..acf8fe3 100644 --- a/src/contracts/VotingToChangeMinThreshold.contract.js +++ b/src/contracts/VotingToChangeMinThreshold.contract.js @@ -72,6 +72,6 @@ export default class VotingToChangeMinThreshold { async getBallotLimit(_votingKey) { const currentLimit = await this.votingToChangeMinThresholdInstance.methods.getBallotLimitPerValidator().call(); - return currentLimit - await this.getValidatorActiveBallots(_votingKey) + return currentLimit - await this.getValidatorActiveBallots(_votingKey); } } diff --git a/src/contracts/VotingToChangeProxy.contract.js b/src/contracts/VotingToChangeProxy.contract.js index f8cdbff..d022ce2 100644 --- a/src/contracts/VotingToChangeProxy.contract.js +++ b/src/contracts/VotingToChangeProxy.contract.js @@ -76,6 +76,6 @@ export default class VotingToChangeProxy { async getBallotLimit(_votingKey) { const currentLimit = await this.votingToChangeProxyInstance.methods.getBallotLimitPerValidator().call(); - return currentLimit - await this.getValidatorActiveBallots(_votingKey) + return currentLimit - await this.getValidatorActiveBallots(_votingKey); } } \ No newline at end of file diff --git a/src/index.js b/src/index.js index 37ac1f0..9a0f247 100644 --- a/src/index.js +++ b/src/index.js @@ -44,9 +44,9 @@ class AppMainRouter extends Component { contractsStore.getAllProxyBallots(); await contractsStore.setMiningKey(web3Config); contractsStore.getValidatorActiveBallots(); - contractsStore.getAllValidatorMetadata() - console.log("votingKey", contractsStore.votingKey) - console.log("miningKey", contractsStore.miningKey) + contractsStore.getAllValidatorMetadata(); + console.log("votingKey", contractsStore.votingKey); + console.log("miningKey", contractsStore.miningKey); }).catch((error) => { commonStore.hideLoading(); swal({ diff --git a/src/stores/BallotStore.js b/src/stores/BallotStore.js index 5942f81..ccf7e33 100644 --- a/src/stores/BallotStore.js +++ b/src/stores/BallotStore.js @@ -127,12 +127,12 @@ class BallotStore { this[parent][field] = newVal; else 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") setMiningKey = (value) => { this.ballotKeys.miningKey = value; - console.log("ballot mining key", toJS(value)) + console.log("ballot mining key", toJS(value)); } }