window.getProjectId = function() {
Bidding.deployed().then(function(instance) {
  instance.projectReturn({}, function(error,result) {
      var pid = (result.args.projectId);
       getPro(pid); });


In the above code when the getprojectID function is called for first time the event projectReturn is triggered for one time when called second time the event is also triggered for two times like this it is going on increasing can anybody help on this. I am using truffle and testprc

  • This question is about programming not Ethereum. But without the source of your project is almost imposible to tell. Is projectReturn an event? In that case you can use a global to know that an event was already created. – Ismael Jul 16 '17 at 2:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.