From 4f5a95d569408e6a0a94c54b1eb39ea62b873c5e Mon Sep 17 00:00:00 2001 From: chriseth Date: Mon, 5 Sep 2016 16:29:08 +0200 Subject: Update documentation to version 0.4.0. --- docs/miscellaneous.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/miscellaneous.rst') diff --git a/docs/miscellaneous.rst b/docs/miscellaneous.rst index 8d1452b4..7d4cedb6 100644 --- a/docs/miscellaneous.rst +++ b/docs/miscellaneous.rst @@ -212,7 +212,6 @@ Tips and Tricks * Make your state variables public - the compiler will create :ref:`getters ` for you for free. * If you end up checking conditions on input or state a lot at the beginning of your functions, try using :ref:`modifiers`. * If your contract has a function called ``send`` but you want to use the built-in send-function, use ``address(contractVariable).send(amount)``. -* If you do **not** want your contracts to receive ether when called via ``send``, you can add a throwing fallback function ``function() { throw; }``. * Initialise storage structs with a single assignment: ``x = MyStruct({a: 1, b: 2});`` ********** @@ -338,3 +337,4 @@ Modifiers - ``constant`` for functions: Disallows modification of state - this is not enforced yet. - ``anonymous`` for events: Does not store event signature as topic. - ``indexed`` for event parameters: Stores the parameter as topic. +- ``payable`` for functions: Allows them to receive Ether together with a call. -- cgit