4

I am a Junior JS Dev, new to Ethereum. I am trying to test this Dapp ( Ballot ) locally, have all the pre-reqs ready, but not sure how to open it from the mist browser.

Will appreciate any help.

armova
  • 53
  • 5

2 Answers2

3

In summary, navigate to Contracts -> Deploy New Contract, then paste the contract into the source code textbox and the send/submit. The wallet will send the compiled bytecode to the network.

You will need a little Ether to pay for the gas needed. On testnet, this is easily acquired through mining, at no cost. After the contract is deployed, you'll see it tracked on the contracts panel.

Related: How to specify the gas when deploying a new contract in Mist?

Alternatively, consider experimentation with the in-memory Remix (a.k.a. Browser Solidity) browser solution. https://ethereum.github.io/browser-solidity/

This is an in-memory solution that doesn't persist between sessions. It's fast and there are few prerequisites.

Hope it helps.

Rob Hitchens
  • 55,151
  • 11
  • 89
  • 145
3

After following the instruction in the readme, just drag the main page into mist or if you host it in a webserver enter the corresponding url e.g : 127.0.0.1/vote.html in the top bar. or use the browse option located in the menu at left.

enter image description here

Badr Bellaj
  • 18,780
  • 4
  • 58
  • 75