diff options
author | João Vítor <joaovmferreira@gmail.com> | 2018-06-04 04:36:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-04 04:36:28 +0800 |
commit | 6bd82428d2e766893fda8c89eb512e37a1d2ba1f (patch) | |
tree | 720631b248895b4f1aa48db9a63b05af6978d517 /docs | |
parent | e89d6350459343bd213f5525b9993194ce7e8edb (diff) | |
download | dexon-solidity-6bd82428d2e766893fda8c89eb512e37a1d2ba1f.tar.gz dexon-solidity-6bd82428d2e766893fda8c89eb512e37a1d2ba1f.tar.zst dexon-solidity-6bd82428d2e766893fda8c89eb512e37a1d2ba1f.zip |
fix clainTimeout() function
Diffstat (limited to 'docs')
-rw-r--r-- | docs/solidity-by-example.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/solidity-by-example.rst b/docs/solidity-by-example.rst index e87dea97..cad652dc 100644 --- a/docs/solidity-by-example.rst +++ b/docs/solidity-by-example.rst @@ -1036,7 +1036,7 @@ The full contract /// if the timeout is reached without the recipient closing the channel, /// then the ether is realeased back to the sender. - funtion clainTimeout() public { + function clainTimeout() public { require(now >= expiration); selfdestruct(sender); } |