Merge pull request #56 from rstormsf/core

(BugFix) Correctly pass miningKey.value to the endPoint
This commit is contained in:
Victor Baranov 2018-01-07 15:44:13 +03:00 committed by GitHub
commit 9367c378af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -53,8 +53,8 @@ export class NewBallot extends React.Component {
commonStore.hideLoading();
return false;
}
let isMiningKeyAddress = contractsStore.web3Instance.isAddress(ballotStore.ballotKeys.miningKey);
let isMiningKeyAddress = contractsStore.web3Instance.isAddress(ballotStore.ballotKeys.miningKey.value);
if (!isMiningKeyAddress) {
swal("Warning!", constants.MINING_KEY_IS_NOT_ADDRESS_MSG, "warning");
commonStore.hideLoading();
@ -100,7 +100,7 @@ export class NewBallot extends React.Component {
ballotStore.endTimeUnix,
ballotStore.ballotKeys.affectedKey,
ballotStore.ballotKeys.keyType,
ballotStore.ballotKeys.miningKey,
ballotStore.ballotKeys.miningKey.value,
ballotStore.ballotKeys.keysBallotType,
contractsStore.votingKey
];