Skip to main content

I am a beginner studying how to use Solidity in writing smart contract.

As I read the Solidity documentation, I would like to have a feel of how smart contract works using the Remix IDE.

I am trying with the contract Ballot given in the voting example.

enter image description here

According to my understanding, after I have created the contract, I would be the the chairperson with address msg.sender.msg.sender

And I can give right to other voters using the giveRightToVotegiveRightToVote function by entering their address.

What I am not sure here is how I can create another voter with different address in Remix IDE. If I click create, another contract would be generated voting for different proposals.

Can someone please teach me what I should do in order to create a new voter or point out if I have misunderstanding in concepts. Thank you very much.

I am a beginner studying how to use Solidity in writing smart contract.

As I read the Solidity documentation, I would like to have a feel of how smart contract works using the Remix IDE.

I am trying with the contract Ballot given in the voting example.

enter image description here

According to my understanding, after I have created the contract, I would be the the chairperson with address msg.sender.

And I can give right to other voters using the giveRightToVote function by entering their address.

What I am not sure here is how I can create another voter with different address in Remix IDE. If I click create, another contract would be generated voting for different proposals.

Can someone please teach me what I should do in order to create a new voter or point out if I have misunderstanding in concepts. Thank you very much.

I am a beginner studying how to use Solidity in writing smart contract.

As I read the Solidity documentation, I would like to have a feel of how smart contract works using the Remix IDE.

I am trying with the contract Ballot given in the voting example.

enter image description here

According to my understanding, after I have created the contract, I would be the the chairperson with address msg.sender

And I can give right to other voters using the giveRightToVote function by entering their address.

What I am not sure here is how I can create another voter with different address in Remix IDE. If I click create, another contract would be generated voting for different proposals.

Can someone please teach me what I should do in order to create a new voter or point out if I have misunderstanding in concepts. Thank you very much.

Source Link

Question about the voting example

I am a beginner studying how to use Solidity in writing smart contract.

As I read the Solidity documentation, I would like to have a feel of how smart contract works using the Remix IDE.

I am trying with the contract Ballot given in the voting example.

enter image description here

According to my understanding, after I have created the contract, I would be the the chairperson with address msg.sender.

And I can give right to other voters using the giveRightToVote function by entering their address.

What I am not sure here is how I can create another voter with different address in Remix IDE. If I click create, another contract would be generated voting for different proposals.

Can someone please teach me what I should do in order to create a new voter or point out if I have misunderstanding in concepts. Thank you very much.