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

display of winner #6

Open
tarunratan opened this issue Apr 6, 2022 · 16 comments
Open

display of winner #6

tarunratan opened this issue Apr 6, 2022 · 16 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@tarunratan
Copy link

i have gone through the code
but how do you declare the winner there is no functionality regarding it

@0xSumitBanik 0xSumitBanik added good first issue Good for newcomers enhancement New feature or request labels Apr 6, 2022
@0xSumitBanik
Copy link
Owner

Good Catch. Go ahead and create a PR, will be happy to see the enchancement.

@tarunratan
Copy link
Author

ive tried running the application but cast vote option is not working can you please let me know whats the issue there
Screenshot from 2022-04-06 14-31-23

@Nanda9959
Copy link

ive tried running the application but cast vote option is not working can you please let me know whats the issue there Screenshot from 2022-04-06 14-31-23

Yeah even I have got the same issue
please can anyone help me learn and work on this project practically

@0xSumitBanik
Copy link
Owner

This project is running on a legacy solc version.
There are some updates required in the endpoint, I'll update my code.

@0xSumitBanik
Copy link
Owner

Please refer to the issue #11
I will be posting all my updates there.

cc: @tarunratan @Nanda9959

@0xSumitBanik
Copy link
Owner

Fixed the Cast Vote page issue, please clone/pull the latest changes from master and run the project with steps that I've mentioned in the README.

cc: @tarunratan @Nanda9959

@Nanda9959
Copy link

Nanda9959 commented Aug 11, 2022 via email

@Nanda9959
Copy link

Nanda9959 commented Aug 11, 2022

I got an error with respect to delopying the smart contracts using the command " truffle migrate --reset "

But I got the following error

E:\PROJECT files\BlockVote-master>truffle migrate --reset
Compiling .\contracts\Election.sol...
Compiling .\contracts\Migrations.sol...

/E/PROJECT files/BlockVote-master/contracts/Election.sol:2:1: SyntaxError: Source file requires different compiler version (current compiler is 0.5.0+commit.1d4f565a.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity 0.8.16;
^---------------------^
,/E/PROJECT files/BlockVote-master/contracts/Migrations.sol:2:1: SyntaxError: Source file requires different compiler version (current compiler is 0.5.0+commit.1d4f565a.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity 0.8.16;
^---------------------^
Compilation failed. See above.
Truffle v5.0.2 (core: 5.0.2)
Node v16.16.0

EDIT
I have changed the solidity files version for my case to strictly 0.5.0 and my files got compiled and deployed. BUT still, the problem of cast vote is not working.

I

@0xSumitBanik
Copy link
Owner

I got an error with respect to delopying the smart contracts using the command " truffle migrate --reset "

But I got the following error

E:\PROJECT files\BlockVote-master>truffle migrate --reset Compiling .\contracts\Election.sol... Compiling .\contracts\Migrations.sol...

/E/PROJECT files/BlockVote-master/contracts/Election.sol:2:1: SyntaxError: Source file requires different compiler version (current compiler is 0.5.0+commit.1d4f565a.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version pragma solidity 0.8.16; ^---------------------^ ,/E/PROJECT files/BlockVote-master/contracts/Migrations.sol:2:1: SyntaxError: Source file requires different compiler version (current compiler is 0.5.0+commit.1d4f565a.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version pragma solidity 0.8.16; ^---------------------^ Compilation failed. See above. Truffle v5.0.2 (core: 5.0.2) Node v16.16.0

EDIT I have changed the solidity files version for my case to strictly 0.5.0 and my files got compiled and deployed. BUT still, the problem of cast vote is not working.

I

have you connected your account to metamask?

@Nanda9959
Copy link

Nanda9959 commented Aug 11, 2022 via email

@0xSumitBanik
Copy link
Owner

That's not being possible The same loading page can be seen

On Thu, Aug 11, 2022, 9:43 PM Sumit Banik @.> wrote: I got an error with respect to delopying the smart contracts using the command " truffle migrate --reset " But I got the following error E:\PROJECT files\BlockVote-master>truffle migrate --reset Compiling .\contracts\Election.sol... Compiling .\contracts\Migrations.sol... /E/PROJECT files/BlockVote-master/contracts/Election.sol:2:1: SyntaxError: Source file requires different compiler version (current compiler is 0.5.0+commit.1d4f565a.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version pragma solidity 0.8.16; ^---------------------^ ,/E/PROJECT files/BlockVote-master/contracts/Migrations.sol:2:1: SyntaxError: Source file requires different compiler version (current compiler is 0.5.0+commit.1d4f565a.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version pragma solidity 0.8.16; ^---------------------^ Compilation failed. See above. Truffle v5.0.2 (core: 5.0.2) Node v16.16.0 EDIT I have changed the solidity files version for my case to strictly 0.5.0 and my files got compiled and deployed. BUT still, the problem of cast vote is not working. I https://user-images.githubusercontent.com/63529934/161937998-5d70f421-0da5-4432-a131-92bd4829c80d.png have you connected your account to metamask? — Reply to this email directly, view it on GitHub <#6 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATMZR2L2ZFABPRLRPIM4BJ3VYUREHANCNFSM5SVA5LHQ . You are receiving this because you were mentioned.Message ID: @.>

What is not possible? You have to click on three dots and manually connect to the site!

@Nanda9959
Copy link

Nanda9959 commented Aug 12, 2022

good morning sir
there is no option for connecting metamask to the site sir
when we go to the cast vote section it just starts loading, no any such options will be visible.

I have a doubt from the below reference image
please have a look at it
"AT BASEDIR" the one it is taking files from

Screenshot (7)

here I feel like it is taking JSON files of election and migration files right? is this the reason for the error I am getting?
I tried even removing the JSON files, but yet the problem persists

@Nanda9959
Copy link

@iSumitBanik sir please can you do a small screen sharing video from the starting like how you executed it
may be then I think we can figure out this problem

@Nanda9959
Copy link

Hello, sir please can you help by creating a small youtube video on the exact process of getting the output of the project?
like how you executed it and what each file does.
please do this needful. I request your support.

@Nanda9959
Copy link

hello sir please help me
I have no much time to complete this project successfully and also to submit the same as my mini project.

@Nanda9959
Copy link

I do require your help a lot.
please make a small video for me on the whole process to run the way you did and how you got the cast vote page be available

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants