Closed Bkroland19 closed 1 year ago
By setting admin contract address, do you mean to give your account administrator rights?
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: @.***>
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
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.
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!!
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: @.***>
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 )....
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: @.***>
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: @.***>
no image has been attached so unable to check!! And let me know how you are importing the account!
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: @.***>
Yes then? Kindly attach a screenshot or screen recording regarding what is happening.
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: @.***>
No attachment is visible , kindly respond from github and attach it here
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: @.***>
It seems you are on localhost, can you switch that to polygon mumbai subnet first?
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: @.***>
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/
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: @.***>
i still get the same error
Check if the acc has already been imported once, because i imported it just now for testing, and its working fine on my end
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: @.***>
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: @.***>
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?
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: @.***>
Okay give me a few minutes!!
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: @.***>
Try this:
Aadhar : 222222222222 Password : a54GbZevn4068L293abchK8a9r81x>30cQAe0bc842I90Idm]oD54Ka48f3C,$cxWq13be720v Setup Key : ME4XEOBRPAZTAY2R
Metamask Key: 4c41b78e31d3f464eac7f5b2ac9c8ecae675b05beec66b1d2030376de8b9c0c6
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…]()
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: @.***>
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!
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: @.***>
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: @.***>
From playstore/appstore, or tbh you can use any authenticator app, just put the secret key into the authenticator and it will work.
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: @.***>
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: @.***>
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: >> @.> >> >
Closing the issue!
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: @.***>
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: @.***>
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: @.***>
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: @.***>
Hello Mr Ayan , if i want to change it to my settting or if i want to use localhost what should I do
because when i configure localhost the admin route brings 404
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: @.***>
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....
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: @.***>
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: @.***>
Hello Sir, how can i set the admin contract address