(Update) Rename createBallot method
This commit is contained in:
parent
9a182e8ea2
commit
0421bbbe9f
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue