diff --git a/src/components/NewBallot.jsx b/src/components/NewBallot.jsx index ac4d464..bbe836e 100644 --- a/src/components/NewBallot.jsx +++ b/src/components/NewBallot.jsx @@ -133,7 +133,7 @@ export class NewBallot extends React.Component { sender: contractsStore.votingKey, memo: ballotStore.memo }; - let method = contractsStore.votingToChangeKeys.createVotingForKeys(inputToMethod); + let method = contractsStore.votingToChangeKeys.createBallot(inputToMethod); return method; } @@ -146,7 +146,7 @@ export class NewBallot extends React.Component { sender: contractsStore.votingKey, memo: ballotStore.memo }; - let method = contractsStore.votingToChangeMinThreshold.createBallotToChangeThreshold(inputToMethod); + let method = contractsStore.votingToChangeMinThreshold.createBallot(inputToMethod); return method; } @@ -160,7 +160,7 @@ export class NewBallot extends React.Component { sender: contractsStore.votingKey, memo: ballotStore.memo }; - let method = contractsStore.votingToChangeProxy.createBallotToChangeProxyAddress(inputToMethod); + let method = contractsStore.votingToChangeProxy.createBallot(inputToMethod); return method; } diff --git a/src/contracts/VotingToChangeKeys.contract.js b/src/contracts/VotingToChangeKeys.contract.js index f890ded..3fbc617 100644 --- a/src/contracts/VotingToChangeKeys.contract.js +++ b/src/contracts/VotingToChangeKeys.contract.js @@ -17,8 +17,8 @@ export default class VotingToChangeKeys { } //setters - createVotingForKeys({startTime, endTime, affectedKey, affectedKeyType, miningKey, ballotType, sender, memo}) { - return this.votingToChangeKeysInstance.methods.createVotingForKeys(startTime, endTime, affectedKey, affectedKeyType, miningKey, ballotType, memo).send({from: sender, gasPrice: this.gasPrice}); + createBallot({startTime, endTime, affectedKey, affectedKeyType, miningKey, ballotType, sender, memo}) { + return this.votingToChangeKeysInstance.methods.createBallot(startTime, endTime, affectedKey, affectedKeyType, miningKey, ballotType, memo).send({from: sender, gasPrice: this.gasPrice}); } vote(_id, choice, sender) { diff --git a/src/contracts/VotingToChangeMinThreshold.contract.js b/src/contracts/VotingToChangeMinThreshold.contract.js index 64a077f..d9ce116 100644 --- a/src/contracts/VotingToChangeMinThreshold.contract.js +++ b/src/contracts/VotingToChangeMinThreshold.contract.js @@ -17,8 +17,8 @@ export default class VotingToChangeMinThreshold { } //setters - createBallotToChangeThreshold({startTime, endTime, proposedValue, sender, memo}) { - return this.votingToChangeMinThresholdInstance.methods.createBallotToChangeThreshold(startTime, endTime, proposedValue, memo).send({from: sender, gasPrice: this.gasPrice}) + createBallot({startTime, endTime, proposedValue, sender, memo}) { + return this.votingToChangeMinThresholdInstance.methods.createBallot(startTime, endTime, proposedValue, memo).send({from: sender, gasPrice: this.gasPrice}) } vote(_id, choice, sender) { diff --git a/src/contracts/VotingToChangeProxy.contract.js b/src/contracts/VotingToChangeProxy.contract.js index 461b1eb..1a1ec52 100644 --- a/src/contracts/VotingToChangeProxy.contract.js +++ b/src/contracts/VotingToChangeProxy.contract.js @@ -17,8 +17,8 @@ export default class VotingToChangeProxy { } //setters - createBallotToChangeProxyAddress({startTime, endTime, proposedValue, contractType, sender, memo}) { - return this.votingToChangeProxyInstance.methods.createBallotToChangeProxyAddress(startTime, endTime, proposedValue, contractType, memo).send({from: sender, gasPrice: this.gasPrice}) + createBallot({startTime, endTime, proposedValue, contractType, sender, memo}) { + return this.votingToChangeProxyInstance.methods.createBallot(startTime, endTime, proposedValue, contractType, memo).send({from: sender, gasPrice: this.gasPrice}) } vote(_id, choice, sender) {