Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Add candidate #2

Open
usman317319 opened this issue Nov 10, 2024 · 9 comments
Open

Can't Add candidate #2

usman317319 opened this issue Nov 10, 2024 · 9 comments

Comments

@usman317319
Copy link

I have followed the guide and everything is working good except when it comes to adding a candidate for Voting. I cannot add a candidate and a party. In the console I see this error message.

ERROR! Voting has not been deployed to detected network (network/artifact mismatch)
Screenshot from 2024-11-10 13-38-10

What is causing the error.

@chokoskoder
Copy link

were you able to solve it ?

@Yerbo71
Copy link

Yerbo71 commented Dec 4, 2024

module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 7545,
network_id: "1337" //Garnache Id
}
},
};

@usman317319
Copy link
Author

were you able to solve it ?

Yea it was eventually solved. Now the project is finished.

@Pratham4450
Copy link

were you able to solve it ?

Yea it was eventually solved. Now the project is finished.

can you tell me the solution you used i am facing same problem

@usman317319
Copy link
Author

were you able to solve it ?

Yea it was eventually solved. Now the project is finished.

can you tell me the solution you used i am facing same problem

For me it worked out but here is what another person mentioned.

"hi, i think i know the problem now. it the solidity version, the vote funcion in sol 0.5.15 doesnt work right. when i change to sol 0.8.28(current patch) the vote funcion red out and doesnt work."

Here is the person email : [email protected]

Contact him, he'll tell you what exact version of solidity worked.

@Pratham4450
Copy link

were you able to solve it ?

Yea it was eventually solved. Now the project is finished.

can you tell me the solution you used i am facing same problem

For me it worked out but here is what another person mentioned.

"hi, i think i know the problem now. it the solidity version, the vote funcion in sol 0.5.15 doesnt work right. when i change to sol 0.8.28(current patch) the vote funcion red out and doesnt work."

Here is the person email : [email protected]

Contact him, he'll tell you what exact version of solidity worked.

What worked for you?

@usman317319
Copy link
Author

were you able to solve it ?

Yea it was eventually solved. Now the project is finished.

can you tell me the solution you used i am facing same problem

For me it worked out but here is what another person mentioned.
"hi, i think i know the problem now. it the solidity version, the vote funcion in sol 0.5.15 doesnt work right. when i change to sol 0.8.28(current patch) the vote funcion red out and doesnt work."
Here is the person email : [email protected]
Contact him, he'll tell you what exact version of solidity worked.

What worked for you?

Can you tell me what issue you are facing. You click the button and nothing happens or is transaction failing?

@Pratham4450
Copy link

were you able to solve it ?

Yea it was eventually solved. Now the project is finished.

can you tell me the solution you used i am facing same problem

For me it worked out but here is what another person mentioned.
"hi, i think i know the problem now. it the solidity version, the vote funcion in sol 0.5.15 doesnt work right. when i change to sol 0.8.28(current patch) the vote funcion red out and doesnt work."
Here is the person email : [email protected]
Contact him, he'll tell you what exact version of solidity worked.

What worked for you?

Can you tell me what issue you are facing. You click the button and nothing happens or is transaction failing?

Nothing happens
and it is showing Voting has not been deployed in console.Same as yours

@usman317319
Copy link
Author

were you able to solve it ?

Yea it was eventually solved. Now the project is finished.

can you tell me the solution you used i am facing same problem

For me it worked out but here is what another person mentioned.
"hi, i think i know the problem now. it the solidity version, the vote funcion in sol 0.5.15 doesnt work right. when i change to sol 0.8.28(current patch) the vote funcion red out and doesnt work."
Here is the person email : [email protected]
Contact him, he'll tell you what exact version of solidity worked.

What worked for you?

Can you tell me what issue you are facing. You click the button and nothing happens or is transaction failing?

Nothing happens and it is showing Voting has not been deployed in console.Same as yours

In src/js/app.js
Add a new line after line number 23 and add
console.log("Executed")
Then browsify the code again
image

This may seem a foolish thing to do. I am not a javascript developer. But after adding this line for me it worked.
In c++ there is a concept called as stdout flush, maybe down the level something like that happens and the button works but just a guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants