dappuniversity / election

A Decentralized Ethereum Voting Application Tutorial
563 stars 506 forks source link

I have Issue vote not get casted #28

Open sunny3008 opened 4 years ago

sunny3008 commented 4 years ago

i trying to cast vote but there are some errors when submit the vote. 126 castVote: function() { 127 var candidateId = $('#candidatesSelect').val(); 128 App.contracts.Election.deployed().then(function(instance) { 129 return instance.vote(candidateId, { from: App.account }); 130 }).then(function(result) { 131 // Wait for votes to update 132 $("#content").hide(); 133 $("#loader").show(); 134 }).catch(function(err) { 135 console.error(err); 136 }); 137 } 138 };

at line no 135

Screenshot (56)