-
Notifications
You must be signed in to change notification settings - Fork 22
/
Remix_ropsten_debug_gas.html
30 lines (30 loc) · 2 KB
/
Remix_ropsten_debug_gas.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<div id="ipfs">Qmbz1rwS84ysecAWmjs7GgatCN2T1h8KUmxUp8dWSpL9uE</div>
<div id="timetable">
Location | Action | Object | Time
Chrome - address bar | Change | https=>http | 8
https://remix.ethereum.org | Load & Compile | | 22
remix.loadurl("https://github.com/web3examples/ethereum/remix_examples/Casino.sol")
Remix - left toolbar | Click | Deploy & run transactions | 72
Remix - Deploy & run - Environment Dropdown | Select | Injected Web3 | 81
Remix - Value | Enter | 125 | 89
Remix - Orange bar | Click | Deploy | 94
MetaMask popup | Click | Confirm | 99
Remix - Value | Enter | 5 | 147
Remix - 2nd Orange bar | Click | betAndWin {multiple times} | 149
MetaMask popup | Click | Confirm {multiple times} | 104
Remix - command window | Click | Debug | 260
Remix - Casino.sol | Click | { Multiple line numbers } | 270
Remix - Debugger | ClickJump | Jump to the next breakpoint { Multiple times } | 285
</div>
<div id="goal">
Use remix to debug gas issues on Ropsten.
</div>
<div id="explain">
The HTTP version of remix is selected, because debugging on Ropsten requires this.
A smart contract is loaded and compiled. A couple of transactions are done until an error occurs.
The debugger is used to figure out the gas usage.
</div>
<div id="prerequisites">
Chrome is started and remix is opened with plugins enabled.
</div>
<script src="showvideo.js"></script>