Open sunny3008 opened 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
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