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.

  • are you using javascript VM as the environmnet? Nov 8, 2017 at 8:12
  • yes, I have used the original setting.
    – Peter.PP
    Nov 8, 2017 at 8:15
  • yes, I would like to create other voter as well.
    – Peter.PP
    Nov 8, 2017 at 8:19

1 Answer 1


Go to Run tab and select another account from account field and try. There are five test accounts with 100 ETH in each.

enter image description here

  • Should I create a new contract by clicking create or clicking at address?
    – Peter.PP
    Nov 8, 2017 at 8:25
  • No need you can just use the functions available in already deployed contract Nov 8, 2017 at 8:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.