aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAlexey Alexeyeff <typa.blade@gmail.com>2017-05-26 00:41:40 +0800
committerGitHub <noreply@github.com>2017-05-26 00:41:40 +0800
commitf4ee578b9a6fe2b9385eae15d4133fbcb4572d2f (patch)
tree277ecaa88e7955d8d814740303e1f8a0cd4cbf04 /docs
parentaf2d2499c1ccd431f5ac9455c2cbb63d3891f9b0 (diff)
downloaddexon-solidity-f4ee578b9a6fe2b9385eae15d4133fbcb4572d2f.tar.gz
dexon-solidity-f4ee578b9a6fe2b9385eae15d4133fbcb4572d2f.tar.zst
dexon-solidity-f4ee578b9a6fe2b9385eae15d4133fbcb4572d2f.zip
Rename events in purchase example
Rename events in purchase example according to style guide
Diffstat (limited to 'docs')
-rw-r--r--docs/solidity-by-example.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/solidity-by-example.rst b/docs/solidity-by-example.rst
index ab3f375e..fa078468 100644
--- a/docs/solidity-by-example.rst
+++ b/docs/solidity-by-example.rst
@@ -566,9 +566,9 @@ Safe Remote Purchase
_;
}
- event aborted();
- event purchaseConfirmed();
- event itemReceived();
+ event Aborted();
+ event PurchaseConfirmed();
+ event ItemReceived();
/// Abort the purchase and reclaim the ether.
/// Can only be called by the seller before
@@ -577,7 +577,7 @@ Safe Remote Purchase
onlySeller
inState(State.Created)
{
- aborted();
+ Aborted();
state = State.Inactive;
seller.transfer(this.balance);
}
@@ -591,7 +591,7 @@ Safe Remote Purchase
condition(msg.value == (2 * value))
payable
{
- purchaseConfirmed();
+ PurchaseConfirmed();
buyer = msg.sender;
state = State.Locked;
}
@@ -602,7 +602,7 @@ Safe Remote Purchase
onlyBuyer
inState(State.Locked)
{
- itemReceived();
+ ItemReceived();
// It is important to change the state first because
// otherwise, the contracts called using `send` below
// can call in again here.