<story><title>Understanding Ethereum Smart Contracts</title><url>http://www.gjermundbjaanes.com/understanding-ethereum-smart-contracts/</url></story><parent_chain></parent_chain><comment><author>jatsign</author><text>I&amp;#x27;ve been programing my own Ethereum smart contract (virtual currency) for awhile now. Here&amp;#x27;s some gotchas off the top of my head:&lt;p&gt;- You have about 500 lines of code to work with. This of course varies, but smart contracts have to be really small to fit in the max gas limit (6.7 million wei).&lt;p&gt;- You can&amp;#x27;t pass strings between contracts (coming soon).&lt;p&gt;- There are no floating point numbers. Since you&amp;#x27;re probably working with &amp;quot;money&amp;quot;, this can make things tricky.&lt;p&gt;- You can break up your code into multiple contracts, but the tradeoff is an increased attack area.&lt;p&gt;- Dumb code is more secure than smart code.&lt;p&gt;- The tooling is very immature. You&amp;#x27;ll probably use truffle, which just released version 4. It makes some things easier, some harder. It&amp;#x27;s version of web3 (1.0) may differ from what you were expecting (0.2).&lt;p&gt;- The Ethereum testnet (Ropsten) has a different gas limit than the main net (4.7 million vs 6.7 million).</text></comment>
<story><title>Understanding Ethereum Smart Contracts</title><url>http://www.gjermundbjaanes.com/understanding-ethereum-smart-contracts/</url></story><parent_chain></parent_chain><comment><author>scandox</author><text>What I&amp;#x27;d greatly appreciate is a walk through of a plausible real world use case. I find it hard to concentrate on the technology itself until I understand the application.</text></comment>