From b9f6d695d200bcde0d4f934ce855d028b28fb882 Mon Sep 17 00:00:00 2001 From: alari Date: Sun, 9 Sep 2018 10:09:24 +0200 Subject: [PATCH] Link to auction on rinkeby --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dbecf22..7f85fe7 100644 --- a/README.md +++ b/README.md @@ -32,10 +32,11 @@ This _crazy_ Scala code: ```scala val f = `@public` @: - sumArgs.funcDef("sum", uint256) { args ⇒ + sumArgs.funcDef("sumSome", uint256) { args ⇒ for { c ← 'c :=: `++`(args.ref('a), args.ref('b)) d ← 'd :=: `++`(args.ref('b), c) + _ ← d :=: c sum ← `++`(args.ref('a), d).toReturn } yield sum } @@ -49,14 +50,15 @@ Compiles into this: ```python @public -def sum(a: uint256, b: uint256) -> uint256: +def sumSome(a: uint256, b: uint256) -> uint256: c = a + b d = b + c + d = c return a + d ``` -This smart contract is deployed on [Rinkeby](some link to rinkeby scanner). Hooray! +The more sophisticated [Auction example](https://github.com/fluencelabs/hackethberlin/blob/master/src/main/scala/fluence/Auction.scala) is deployed on [Rinkeby](https://rinkeby.etherscan.io/address/0xdfe0c07c8c6bb3fd9a7fd6ee45bd2c086374f13c). Hooray! ## Future plans