Skip to Content
Ethereum Cookbook
book

Ethereum Cookbook

by Manoj P R
August 2018
Intermediate to advanced
404 pages
11h 19m
English
Packt Publishing
Content preview from Ethereum Cookbook

How to do it...

  1. Access Remix by navigating to https://remix.ethereum.org/.

  1. Let's use the following smart contract to test the debugging functionality. The contract uses a function to set the value of state variables and doesn't do anything complex:
pragma solidity^0.4.24;contract Sample {    uint value;    address sender;        function setValue(uint _value) public {        value = _value;        sender = msg.sender;    }}
  1. Navigate to the Run tab in the right panel and click Deploy to deploy the contract. Be sure to set the Environment as JavaScript VM. It will deploy the contract to a built-in Ethereum instance and will generate an interface to interact with the contract in the right panel, as shown in the following screenshot:
  1. You can access the debugger ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building Ethereum Dapps

Building Ethereum Dapps

Roberto Infante
Ethereum For Dummies

Ethereum For Dummies

Michael G. Solomon

Publisher Resources

ISBN: 9781789133998Supplemental Content