BlockVote icon indicating copy to clipboard operation
BlockVote copied to clipboard

display of winner

Open tarunratan opened this issue 3 years ago • 16 comments

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

tarunratan avatar Apr 06 '22 07:04 tarunratan

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

0xSumitBanik avatar Apr 06 '22 07:04 0xSumitBanik

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

tarunratan avatar Apr 06 '22 09:04 tarunratan

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

Nanda9959 avatar Aug 06 '22 08:08 Nanda9959

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

0xSumitBanik avatar Aug 11 '22 08:08 0xSumitBanik

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

cc: @tarunratan @Nanda9959

0xSumitBanik avatar Aug 11 '22 08:08 0xSumitBanik

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

0xSumitBanik avatar Aug 11 '22 08:08 0xSumitBanik

Thanks for the update sir. But I wish to have one hour of your time, for me to discuss few doubts with you. Please can you mention your free time and give your contact number.

Thanks & Regards Nanda Kishore

On Thu, Aug 11, 2022, 2:29 PM Sumit Banik @.***> wrote:

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 https://github.com/tarunratan @Nanda9959 https://github.com/Nanda9959

— Reply to this email directly, view it on GitHub https://github.com/iSumitBanik/BlockVote/issues/6#issuecomment-1211720704, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATMZR2ION2VK5BB6ZRLWPG3VYS6FVANCNFSM5SVA5LHQ . You are receiving this because you were mentioned.Message ID: @.***>

Nanda9959 avatar Aug 11 '22 11:08 Nanda9959

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

Nanda9959 avatar Aug 11 '22 15:08 Nanda9959

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?

0xSumitBanik avatar Aug 11 '22 16:08 0xSumitBanik

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 https://github.com/iSumitBanik/BlockVote/issues/6#issuecomment-1212199690, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATMZR2L2ZFABPRLRPIM4BJ3VYUREHANCNFSM5SVA5LHQ . You are receiving this because you were mentioned.Message ID: @.***>

Nanda9959 avatar Aug 11 '22 17:08 Nanda9959

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!

0xSumitBanik avatar Aug 11 '22 18:08 0xSumitBanik

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 avatar Aug 12 '22 03:08 Nanda9959

@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 avatar Aug 12 '22 03:08 Nanda9959

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 avatar Sep 11 '22 07:09 Nanda9959

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 avatar Sep 23 '22 11:09 Nanda9959

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

Nanda9959 avatar Sep 23 '22 11:09 Nanda9959