Ayan-Banerjee-918 / VoteBlocks-Dapp

A BlockChain based Online Voting Management System made with ReactJS, Tailwind CSS and Solidity.
https://voteblocks.netlify.app/
MIT License
5 stars 0 forks source link

Hard to set The Admin address #2

Closed Bkroland19 closed 1 year ago

Bkroland19 commented 1 year ago

Hello Sir, how can i set the admin contract address

Ayan-Banerjee-918 commented 1 year ago

By setting admin contract address, do you mean to give your account administrator rights?

Bkroland19 commented 1 year ago

Hello Ayan,

I hope this email finds you well. I'm writing because I'm having trouble accessing the admin panel. I tried to set the address as directed but it didn't work. Could you please provide me with some assistance?

Thank you for your help!

Best regards,

Bukenya Kizza

On Tue, May 16, 2023 at 9:13 AM Ayan Banerjee @.***> wrote:

By setting admin contract address, do you mean to give your account administrator rights?

— Reply to this email directly, view it on GitHub https://github.com/Ayan-Banerjee-918/VoteBlocks-Dapp/issues/2#issuecomment-1549051619, or unsubscribe https://github.com/notifications/unsubscribe-auth/APTMNBQBUX62CDTORY32ITTXGMLH7ANCNFSM6AAAAAAYDBYXXA . You are receiving this because you authored the thread.Message ID: @.***>

Bkroland19 commented 1 year ago

i mean from this statement Browse to https://voteblocks.netlify.app/adminApp/adminLogin or localhost:port/adminApp/adminLogin Note : THIS PAGE IS ACCESSIBLE ONLY IF WALLET ADDRESS IS GIVEN ADMIN RIGHTS what did you mean by the note part and how do i achieve it

Ayan-Banerjee-918 commented 1 year ago

In order to give yourself admin rights in the website, use the provided admin details to login into metamask, authenticator , and then the dapp, you will find yourself in the admin panel.....

There you will get option to verify your other registered account, and after verification, you can provide yourself admin role from there.

Once done, you can logout, use your registered account to login, and you will see you have admin access as well.

Ayan-Banerjee-918 commented 1 year ago

I checked the provided account details , it's logging in fine, let me know exactly where are you facing the issue during admin login, I will help you out!!

Bkroland19 commented 1 year ago

Dear Ayan Banerjee,

I hope this email finds you well. I wanted to reach out to you regarding the issue I'm facing with the admin login. When I try to navigate to the admin route, both on localhost and the hosted version, I'm getting a 404 error. I have checked the provided account details and it seems to be logging in fine.

Could you please assist me in resolving this issue? I would greatly appreciate your help.

Thank you in advance!

Best regards, Bukenya K

On Tue, May 16, 2023 at 11:25 AM Ayan Banerjee @.***> wrote:

I checked the provided account details , it's logging in fine, let me know exactly where are you facing the issue during admin login, I will help you out!!

— Reply to this email directly, view it on GitHub https://github.com/Ayan-Banerjee-918/VoteBlocks-Dapp/issues/2#issuecomment-1549221508, or unsubscribe https://github.com/notifications/unsubscribe-auth/APTMNBSXRBK4KW5BLM7HA3LXGM2WNANCNFSM6AAAAAAYDBYXXA . You are receiving this because you authored the thread.Message ID: @.***>

Ayan-Banerjee-918 commented 1 year ago

Try this: Instead of going directly to the admin route, first go to the main site, i.e, voteblocks.netlify.app , then import into metamask the provided account, after that visit the admin route, i think it will work.

Remember the provided metamask account is of polygon mumbai net, so after importing the acc, do remember to switch the network from ethereum mainnet to polygon mumbai (add it as a custom network )....

Bkroland19 commented 1 year ago

here is what i get when i try to import the account

On Tue, May 16, 2023 at 1:40 PM Ayan Banerjee @.***> wrote:

Try this: Instead of going directly to the admin route, first go to the main site, i.e, voteblocks.netlify.app , then import into metamask the provided account, after that visit the admin route, i think it will work

— Reply to this email directly, view it on GitHub https://github.com/Ayan-Banerjee-918/VoteBlocks-Dapp/issues/2#issuecomment-1549420707, or unsubscribe https://github.com/notifications/unsubscribe-auth/APTMNBWVWR25E6BA7NJYLIDXGNKTFANCNFSM6AAAAAAYDBYXXA . You are receiving this because you authored the thread.Message ID: @.***>

Bkroland19 commented 1 year ago

it can't import that account you provided

On Tue, May 16, 2023 at 2:57 PM Bukenya Kizza @.***> wrote:

here is what i get when i try to import the account

On Tue, May 16, 2023 at 1:40 PM Ayan Banerjee @.***> wrote:

Try this: Instead of going directly to the admin route, first go to the main site, i.e, voteblocks.netlify.app , then import into metamask the provided account, after that visit the admin route, i think it will work

— Reply to this email directly, view it on GitHub https://github.com/Ayan-Banerjee-918/VoteBlocks-Dapp/issues/2#issuecomment-1549420707, or unsubscribe https://github.com/notifications/unsubscribe-auth/APTMNBWVWR25E6BA7NJYLIDXGNKTFANCNFSM6AAAAAAYDBYXXA . You are receiving this because you authored the thread.Message ID: @.***>

Ayan-Banerjee-918 commented 1 year ago

no image has been attached so unable to check!! And let me know how you are importing the account!

Bkroland19 commented 1 year ago

i copy the

e439ae6593376e149f0421f7ae7b3c777cc1da5e7d47923766f2e0f85030e723

and went to metamask import(private key) and then pasted in this e439ae6593376e149f0421f7ae7b3c777cc1da5e7d47923766f2e0f85030e723

On Tue, May 16, 2023 at 4:35 PM Bukenya Kizza @.***> wrote:

On Tue, May 16, 2023 at 4:21 PM Ayan Banerjee @.***> wrote:

no image has been attached so unable to check!! And let me know how you are importing the account!

— Reply to this email directly, view it on GitHub https://github.com/Ayan-Banerjee-918/VoteBlocks-Dapp/issues/2#issuecomment-1549666294, or unsubscribe https://github.com/notifications/unsubscribe-auth/APTMNBXJ7P2SAQRGDV5F2MTXGN5MJANCNFSM6AAAAAAYDBYXXA . You are receiving this because you authored the thread.Message ID: @.***>

Ayan-Banerjee-918 commented 1 year ago

Yes then? Kindly attach a screenshot or screen recording regarding what is happening.

Bkroland19 commented 1 year ago

Then it brings the error i have sent you in the attachment

On Tue, May 16, 2023 at 4:40 PM Ayan Banerjee @.***> wrote:

Yes then?

— Reply to this email directly, view it on GitHub https://github.com/Ayan-Banerjee-918/VoteBlocks-Dapp/issues/2#issuecomment-1549696830, or unsubscribe https://github.com/notifications/unsubscribe-auth/APTMNBT6IZNQEWJEISMJLWLXGN7VZANCNFSM6AAAAAAYDBYXXA . You are receiving this because you authored the thread.Message ID: @.***>

Ayan-Banerjee-918 commented 1 year ago

No attachment is visible , kindly respond from github and attach it here

Bkroland19 commented 1 year ago

https://res.cloudinary.com/itgenius/image/upload/v1684244760/Screenshot_from_2023-05-16_14-55-45_vvptmi.png

thats the link to the image am talking about

On Tue, May 16, 2023 at 4:45 PM Bukenya Kizza @.***> wrote:

Then it brings the error i have sent you in the attachment

On Tue, May 16, 2023 at 4:40 PM Ayan Banerjee @.***> wrote:

Yes then?

— Reply to this email directly, view it on GitHub https://github.com/Ayan-Banerjee-918/VoteBlocks-Dapp/issues/2#issuecomment-1549696830, or unsubscribe https://github.com/notifications/unsubscribe-auth/APTMNBT6IZNQEWJEISMJLWLXGN7VZANCNFSM6AAAAAAYDBYXXA . You are receiving this because you authored the thread.Message ID: @.***>

Bkroland19 commented 1 year ago

Screenshot from 2023-05-16 14-55-45

Ayan-Banerjee-918 commented 1 year ago

It seems you are on localhost, can you switch that to polygon mumbai subnet first?

Bkroland19 commented 1 year ago

oh let me first switch to that network but i dont know how to switch to it

On Tue, May 16, 2023 at 4:51 PM Ayan Banerjee @.***> wrote:

It seems you are on localhost, can you switch that to polygon mumbai subnet first?

— Reply to this email directly, view it on GitHub https://github.com/Ayan-Banerjee-918/VoteBlocks-Dapp/issues/2#issuecomment-1549715007, or unsubscribe https://github.com/notifications/unsubscribe-auth/APTMNBWIU5HWGL7IJYOKCJ3XGOA4TANCNFSM6AAAAAAYDBYXXA . You are receiving this because you authored the thread.Message ID: @.***>

Ayan-Banerjee-918 commented 1 year ago

Click on localhost => Add Network => Add a network manually

Fill in the following details:

Network Name: Mumbai Testnet New RPC URL: https://rpc-mumbai.maticvigil.com/ Chain ID: 80001 Currency Symbol: MATIC Block Explorer URL: https://polygonscan.com/

Bkroland19 commented 1 year ago

Thanks a lot. am done adding that network

On Tue, May 16, 2023 at 4:55 PM Ayan Banerjee @.***> wrote:

Click on localhost => Add Network => Add a network manually

Fill in the following details:

Network Name: Mumbai Testnet New RPC URL: https://rpc-mumbai.maticvigil.com/ Chain ID: 80001 Currency Symbol: MATIC Block Explorer URL: https://polygonscan.com/

— Reply to this email directly, view it on GitHub https://github.com/Ayan-Banerjee-918/VoteBlocks-Dapp/issues/2#issuecomment-1549723232, or unsubscribe https://github.com/notifications/unsubscribe-auth/APTMNBQ4GPO2PNLGQ44HVGLXGOBNRANCNFSM6AAAAAAYDBYXXA . You are receiving this because you authored the thread.Message ID: @.***>

Bkroland19 commented 1 year ago

Screenshot from 2023-05-16 17-00-24

Bkroland19 commented 1 year ago

i still get the same error

Ayan-Banerjee-918 commented 1 year ago

Check if the acc has already been imported once, because i imported it just now for testing, and its working fine on my end

Bkroland19 commented 1 year ago

No, it doesn't.

On Tue, May 16, 2023 at 5:02 PM Ayan Banerjee @.***> wrote:

Check if the acc has already been imported once

— Reply to this email directly, view it on GitHub https://github.com/Ayan-Banerjee-918/VoteBlocks-Dapp/issues/2#issuecomment-1549741081, or unsubscribe https://github.com/notifications/unsubscribe-auth/APTMNBRT3TBOTVYSM37KDKDXGOCGDANCNFSM6AAAAAAYDBYXXA . You are receiving this because you authored the thread.Message ID: @.***>

Bkroland19 commented 1 year ago

cant i configure another address

On Tue, May 16, 2023 at 5:04 PM Bukenya Kizza @.***> wrote:

No, it doesn't.

On Tue, May 16, 2023 at 5:02 PM Ayan Banerjee @.***> wrote:

Check if the acc has already been imported once

— Reply to this email directly, view it on GitHub https://github.com/Ayan-Banerjee-918/VoteBlocks-Dapp/issues/2#issuecomment-1549741081, or unsubscribe https://github.com/notifications/unsubscribe-auth/APTMNBRT3TBOTVYSM37KDKDXGOCGDANCNFSM6AAAAAAYDBYXXA . You are receiving this because you authored the thread.Message ID: @.***>

Ayan-Banerjee-918 commented 1 year ago

Do you want me to make you administrator? Because its definitely a metamask issue on your end!

Or do you want me to create another admin account, and you would like to give yourself the administrator role using that acc?

Bkroland19 commented 1 year ago

Yes, you can do that. I want to make my self the admin

On Tue, May 16, 2023 at 5:06 PM Ayan Banerjee @.***> wrote:

Do you want me to make you administrator? Because its definitely a metamask issue on your end!

Or do you want me to create another admin account, and you would like to give yourself the administrator role?

— Reply to this email directly, view it on GitHub https://github.com/Ayan-Banerjee-918/VoteBlocks-Dapp/issues/2#issuecomment-1549748985, or unsubscribe https://github.com/notifications/unsubscribe-auth/APTMNBSHVTOB6XNWQLMNOWTXGOCWLANCNFSM6AAAAAAYDBYXXA . You are receiving this because you authored the thread.Message ID: @.***>

Ayan-Banerjee-918 commented 1 year ago

Okay give me a few minutes!!

Bkroland19 commented 1 year ago

Okay Sir , i appreciate

On Tue, May 16, 2023 at 5:08 PM Ayan Banerjee @.***> wrote:

Okay give me a few minutes!!

— Reply to this email directly, view it on GitHub https://github.com/Ayan-Banerjee-918/VoteBlocks-Dapp/issues/2#issuecomment-1549753357, or unsubscribe https://github.com/notifications/unsubscribe-auth/APTMNBU4OBJLULXHZSJHBB3XGOC7VANCNFSM6AAAAAAYDBYXXA . You are receiving this because you authored the thread.Message ID: @.***>

Ayan-Banerjee-918 commented 1 year ago

Try this:

Aadhar : 222222222222 Password : a54GbZevn4068L293abchK8a9r81x>30cQAe0bc842I90Idm]oD54Ka48f3C,$cxWq13be720v Setup Key : ME4XEOBRPAZTAY2R

Metamask Key: 4c41b78e31d3f464eac7f5b2ac9c8ecae675b05beec66b1d2030376de8b9c0c6

Bkroland19 commented 1 year ago

the account is created on metamask but when i navigate to admin i get this ![Uploading Screenshot from 2023-05-16 17-57-28.png…]()

Bkroland19 commented 1 year ago

account created on metamask but this link sends 404 https://voteblocks.netlify.app/adminApp/adminLogin

On Tue, May 16, 2023 at 5:49 PM Ayan Banerjee @.***> wrote:

Try this:

Aadhar : 222222222222 Password : a54GbZevn4068L293abchK8a9r81x>30cQAe0bc842I90Idm]oD54Ka48f3C,$cxWq13be720v Setup Key : ME4XEOBRPAZTAY2R

Metamask Key: 4c41b78e31d3f464eac7f5b2ac9c8ecae675b05beec66b1d2030376de8b9c0c6

— Reply to this email directly, view it on GitHub https://github.com/Ayan-Banerjee-918/VoteBlocks-Dapp/issues/2#issuecomment-1549825716, or unsubscribe https://github.com/notifications/unsubscribe-auth/APTMNBSMHQIRDT452H54FADXGOHWTANCNFSM6AAAAAAYDBYXXA . You are receiving this because you authored the thread.Message ID: @.***>

Ayan-Banerjee-918 commented 1 year ago

Yea first you need to connect the wallet to the site then it will work... Go to metamask , you will see on the top left it says not connected, click on that, it will connect then try.

The 404 is for preventing unauthorized access, so that only the sole administrator who has a unique metamask key can access the page and no one else!

Bkroland19 commented 1 year ago

yes i have accessed it now let me try the logins u sent me

On Tue, May 16, 2023 at 6:02 PM Ayan Banerjee @.***> wrote:

Yea first you need to connect the wallet to the site then it will work... Go to metamask , you will see on the top left it says not connected, click on that, it will connect then try

— Reply to this email directly, view it on GitHub https://github.com/Ayan-Banerjee-918/VoteBlocks-Dapp/issues/2#issuecomment-1549849558, or unsubscribe https://github.com/notifications/unsubscribe-auth/APTMNBXZX2TNYHP7KC4F4ULXGOJGXANCNFSM6AAAAAAYDBYXXA . You are receiving this because you authored the thread.Message ID: @.***>

Bkroland19 commented 1 year ago

Yes bro it has worked now i need to use the google authenticator where do i get it from

On Tue, May 16, 2023 at 6:10 PM Bukenya Kizza @.***> wrote:

yes i have accessed it now let me try the logins u sent me

On Tue, May 16, 2023 at 6:02 PM Ayan Banerjee @.***> wrote:

Yea first you need to connect the wallet to the site then it will work... Go to metamask , you will see on the top left it says not connected, click on that, it will connect then try

— Reply to this email directly, view it on GitHub https://github.com/Ayan-Banerjee-918/VoteBlocks-Dapp/issues/2#issuecomment-1549849558, or unsubscribe https://github.com/notifications/unsubscribe-auth/APTMNBXZX2TNYHP7KC4F4ULXGOJGXANCNFSM6AAAAAAYDBYXXA . You are receiving this because you authored the thread.Message ID: @.***>

Ayan-Banerjee-918 commented 1 year ago

From playstore/appstore, or tbh you can use any authenticator app, just put the secret key into the authenticator and it will work.

Bkroland19 commented 1 year ago

I have logged successfully but i see a list of other users how can i change this is it the ipfs ??

On Tue, May 16, 2023 at 6:12 PM Bukenya Kizza @.***> wrote:

Yes bro it has worked now i need to use the google authenticator where do i get it from

On Tue, May 16, 2023 at 6:10 PM Bukenya Kizza @.***> wrote:

yes i have accessed it now let me try the logins u sent me

On Tue, May 16, 2023 at 6:02 PM Ayan Banerjee @.***> wrote:

Yea first you need to connect the wallet to the site then it will work... Go to metamask , you will see on the top left it says not connected, click on that, it will connect then try

— Reply to this email directly, view it on GitHub https://github.com/Ayan-Banerjee-918/VoteBlocks-Dapp/issues/2#issuecomment-1549849558, or unsubscribe https://github.com/notifications/unsubscribe-auth/APTMNBXZX2TNYHP7KC4F4ULXGOJGXANCNFSM6AAAAAAYDBYXXA . You are receiving this because you authored the thread.Message ID: @.***>

Bkroland19 commented 1 year ago

surely it worked i appreciate may God bless the works of your hands

On Tue, May 16, 2023 at 6:16 PM Ayan Banerjee @.***> wrote:

From playstore/appstore, or tbh you can use any authenticator app, just put the secret key into the authenticator and it will work.

— Reply to this email directly, view it on GitHub https://github.com/Ayan-Banerjee-918/VoteBlocks-Dapp/issues/2#issuecomment-1549874754, or unsubscribe https://github.com/notifications/unsubscribe-auth/APTMNBSKAJWQHJD2XAUYWELXGOK33ANCNFSM6AAAAAAYDBYXXA . You are receiving this because you authored the thread.Message ID: @.***>

Ayan-Banerjee-918 commented 1 year ago

To do that, you need to compile the contract yourself and host it on a new blockchain, then it wont have other users... You are not supposed to remove other users in this build!

I have logged successfully but i see a list of other users how can i change this is it the ipfs ?? On Tue, May 16, 2023 at 6:12 PM Bukenya Kizza @.> wrote: Yes bro it has worked now i need to use the google authenticator where do i get it from On Tue, May 16, 2023 at 6:10 PM Bukenya Kizza @.> wrote: > yes i have accessed it now let me try the logins u sent me > > On Tue, May 16, 2023 at 6:02 PM Ayan Banerjee @.> > wrote: > >> Yea first you need to connect the wallet to the site then it will >> work... Go to metamask , you will see on the top left it says not >> connected, click on that, it will connect then try >> >> — >> Reply to this email directly, view it on GitHub >> <#2 (comment)>, >> or unsubscribe >> https://github.com/notifications/unsubscribe-auth/APTMNBXZX2TNYHP7KC4F4ULXGOJGXANCNFSM6AAAAAAYDBYXXA >> . >> You are receiving this because you authored the thread.Message ID: >> @.> >> >

Ayan-Banerjee-918 commented 1 year ago

Closing the issue!

Bkroland19 commented 1 year ago

oH thanks so how do i deploy to that network Sir

On Tue, May 16, 2023 at 6:36 PM Ayan Banerjee @.***> wrote:

Closing the issue!

— Reply to this email directly, view it on GitHub https://github.com/Ayan-Banerjee-918/VoteBlocks-Dapp/issues/2#issuecomment-1549909827, or unsubscribe https://github.com/notifications/unsubscribe-auth/APTMNBS3W5HTRKSHBBDU7CDXGONJDANCNFSM6AAAAAAYDBYXXA . You are receiving this because you authored the thread.Message ID: @.***>

Bkroland19 commented 1 year ago

I wont remove anyone

On Tue, May 16, 2023 at 7:02 PM Bukenya Kizza @.***> wrote:

oH thanks so how do i deploy to that network Sir

On Tue, May 16, 2023 at 6:36 PM Ayan Banerjee @.***> wrote:

Closing the issue!

— Reply to this email directly, view it on GitHub https://github.com/Ayan-Banerjee-918/VoteBlocks-Dapp/issues/2#issuecomment-1549909827, or unsubscribe https://github.com/notifications/unsubscribe-auth/APTMNBS3W5HTRKSHBBDU7CDXGONJDANCNFSM6AAAAAAYDBYXXA . You are receiving this because you authored the thread.Message ID: @.***>

Bkroland19 commented 1 year ago

Hello Sir

On Tue, May 16, 2023 at 7:02 PM Bukenya Kizza @.***> wrote:

I wont remove anyone

On Tue, May 16, 2023 at 7:02 PM Bukenya Kizza @.***> wrote:

oH thanks so how do i deploy to that network Sir

On Tue, May 16, 2023 at 6:36 PM Ayan Banerjee @.***> wrote:

Closing the issue!

— Reply to this email directly, view it on GitHub https://github.com/Ayan-Banerjee-918/VoteBlocks-Dapp/issues/2#issuecomment-1549909827, or unsubscribe https://github.com/notifications/unsubscribe-auth/APTMNBS3W5HTRKSHBBDU7CDXGONJDANCNFSM6AAAAAAYDBYXXA . You are receiving this because you authored the thread.Message ID: @.***>

Bkroland19 commented 1 year ago

Am trying to do it on the localhost do i need to change the truffle config file and set it to mumbai test network

On Wed, May 17, 2023 at 10:20 AM Bukenya Kizza @.***> wrote:

Hello Sir

On Tue, May 16, 2023 at 7:02 PM Bukenya Kizza @.***> wrote:

I wont remove anyone

On Tue, May 16, 2023 at 7:02 PM Bukenya Kizza @.***> wrote:

oH thanks so how do i deploy to that network Sir

On Tue, May 16, 2023 at 6:36 PM Ayan Banerjee @.***> wrote:

Closing the issue!

— Reply to this email directly, view it on GitHub https://github.com/Ayan-Banerjee-918/VoteBlocks-Dapp/issues/2#issuecomment-1549909827, or unsubscribe https://github.com/notifications/unsubscribe-auth/APTMNBS3W5HTRKSHBBDU7CDXGONJDANCNFSM6AAAAAAYDBYXXA . You are receiving this because you authored the thread.Message ID: @.***>

Bkroland19 commented 1 year ago

Hello Mr Ayan , if i want to change it to my settting or if i want to use localhost what should I do

Bkroland19 commented 1 year ago

because when i configure localhost the admin route brings 404

Bkroland19 commented 1 year ago

Its not working on localhost

On Wed, May 17, 2023 at 10:21 AM Bukenya Kizza @.***> wrote:

Am trying to do it on the localhost do i need to change the truffle config file and set it to mumbai test network

On Wed, May 17, 2023 at 10:20 AM Bukenya Kizza @.***> wrote:

Hello Sir

On Tue, May 16, 2023 at 7:02 PM Bukenya Kizza @.***> wrote:

I wont remove anyone

On Tue, May 16, 2023 at 7:02 PM Bukenya Kizza @.***> wrote:

oH thanks so how do i deploy to that network Sir

On Tue, May 16, 2023 at 6:36 PM Ayan Banerjee @.***> wrote:

Closing the issue!

— Reply to this email directly, view it on GitHub https://github.com/Ayan-Banerjee-918/VoteBlocks-Dapp/issues/2#issuecomment-1549909827, or unsubscribe https://github.com/notifications/unsubscribe-auth/APTMNBS3W5HTRKSHBBDU7CDXGONJDANCNFSM6AAAAAAYDBYXXA . You are receiving this because you authored the thread.Message ID: @.***>

Ayan-Banerjee-918 commented 1 year ago

It's not working because you aren't setting your account ID as admin account in ur localhost.... Look at the contract, you should be able to figure it out yourself....

Bkroland19 commented 1 year ago

Hi Ayan,

I hope you're doing well. I received your email regarding the issue I'm facing with my account. I appreciate your guidance so far. However, it seems that I haven't set my account ID as an admin account in my localhost, which is causing the problem. I will take a closer look at the contract and try to figure it out myself.

Thank you for your assistance. If I have any further questions, I'll reach out to you.

Best regards, Bukenya Kizza

On Fri, May 19, 2023 at 7:59 AM Ayan Banerjee @.***> wrote:

It's not working because you aren't setting your account ID as admin account in ur localhost.... Look at the contract, you should be able to figure it out yourself....

— Reply to this email directly, view it on GitHub https://github.com/Ayan-Banerjee-918/VoteBlocks-Dapp/issues/2#issuecomment-1553995004, or unsubscribe https://github.com/notifications/unsubscribe-auth/APTMNBWNTHREYRGU762BS5LXG342TANCNFSM6AAAAAAYDBYXXA . You are receiving this because you authored the thread.Message ID: @.***>

Bkroland19 commented 1 year ago

do i have to set it from here constructor(){ string memory hsh= "d%4c50e2dbA5&ed&dd90U&2d-R]73d1]Wc73+54u9bKx45672ib26f0p1Nmk_+20cpdC(b5712" ; address addr=0xCDbD5B3D6347eedbDC0149bF920527D525412D25; @.***", collisionHash(hsh),'0','MRSDSMCVGJSFENZT',true)); voterList.push(userlist[0]); UserRole[0]=true; UserToId[addr]=0; userExists[addr]=true; }

On Fri, May 19, 2023 at 8:14 AM Bukenya Kizza @.***> wrote:

Hi Ayan,

I hope you're doing well. I received your email regarding the issue I'm facing with my account. I appreciate your guidance so far. However, it seems that I haven't set my account ID as an admin account in my localhost, which is causing the problem. I will take a closer look at the contract and try to figure it out myself.

Thank you for your assistance. If I have any further questions, I'll reach out to you.

Best regards, Bukenya Kizza

On Fri, May 19, 2023 at 7:59 AM Ayan Banerjee @.***> wrote:

It's not working because you aren't setting your account ID as admin account in ur localhost.... Look at the contract, you should be able to figure it out yourself....

— Reply to this email directly, view it on GitHub https://github.com/Ayan-Banerjee-918/VoteBlocks-Dapp/issues/2#issuecomment-1553995004, or unsubscribe https://github.com/notifications/unsubscribe-auth/APTMNBWNTHREYRGU762BS5LXG342TANCNFSM6AAAAAAYDBYXXA . You are receiving this because you authored the thread.Message ID: @.***>