Skip to content

Commit 06f1d65

Browse files
author
James Lockhart
committed
Added tutorial 29
1 parent c0ae3a3 commit 06f1d65

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ The companion to the Youtube tutorials
3131
- [Learning Solidity : Tutorial 26 Auditing, Security and Testing (Long, but important)](https://www.youtube.com/watch?v=LGCMZ7S_ITE)
3232
- [Learning Solidity : Tutorial 27 Getting started with browser development using Metamask](https://www.youtube.com/watch?v=eog2eYrPEu0)
3333
- [Learning Solidity : Tutorial 28 Address book on the blockchain powered by Angular](https://www.youtube.com/watch?v=bvxKICus3bw)
34+
- [Learning Solidity : Tutorial 29 What is WEI and how is Ether defined?](https://www.youtube.com/watch?v=yOfYNUQVjxk)
3435
### Support
3536

3637
- [Invalid implicit conversion of arrays from storage to memory and vice-versa](https://github.com/willitscale/learning-solidity/blob/master/support/INVALID_IMPLICIT_CONVERSION_OF_ARRAYS.MD)

tutorial-28/public/truffle.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

tutorial-29/Denominations.sol

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
pragma solidity ^0.4.0;
2+
3+
contract Denominations {
4+
// WEI Denominations
5+
uint constant WEI = 1 wei;
6+
uint constant KWEI = 1000 wei;
7+
uint constant MWEI = 1000000 wei;
8+
uint constant GWEI = 1000000000 wei;
9+
10+
// Ether Denominations
11+
uint constant MICROETHER = 1 szabo;
12+
uint constant MILLIETHER = 1 finney;
13+
uint constant ETHER = 1 ether;
14+
uint constant KETHER = 1000 ether;
15+
uint constant METHER = 1000000 ether;
16+
uint constant GETHER = 1000000000 ether;
17+
uint constant TETHER = 1000000000000 ether;
18+
}

0 commit comments

Comments
 (0)