From 2ad88b59f6d2658c49bb4cda3fec056a4cb5ebe5 Mon Sep 17 00:00:00 2001 From: Brett Sun Date: Sun, 1 Oct 2017 22:27:42 -0400 Subject: [PATCH 1/2] Small indenting fix for bounty docs --- docs/source/bounty.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/bounty.rst b/docs/source/bounty.rst index d82707eca..6ad0fbf96 100644 --- a/docs/source/bounty.rst +++ b/docs/source/bounty.rst @@ -7,8 +7,8 @@ To create a bounty for your contract, inherit from the base `Bounty` contract an import "./YourContract.sol"; contract YourBounty is Bounty { - function deployContract() internal returns(address) { - return new YourContract() + function deployContract() internal returns(address) { + return new YourContract() } } From 1333f45cdcfc4d187a41117a594440c2d017a3ee Mon Sep 17 00:00:00 2001 From: Brett Sun Date: Sun, 1 Oct 2017 22:34:58 -0400 Subject: [PATCH 2/2] Add missing code blocks to bounty docs --- docs/source/bounty.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/bounty.rst b/docs/source/bounty.rst index 6ad0fbf96..89074c6c9 100644 --- a/docs/source/bounty.rst +++ b/docs/source/bounty.rst @@ -14,7 +14,7 @@ To create a bounty for your contract, inherit from the base `Bounty` contract an Next, implement invariant logic into your smart contract. -Your main contract should inherit from the Target class and implement the checkInvariant method. This is a function that should check everything your contract assumes to be true all the time. If this function returns false, it means your contract was broken in some way and is in an inconsistent state. This is what security researchers will try to acomplish when trying to get the bounty. +Your main contract should inherit from the `Target` class and implement the ```checkInvariant()``` method. This is a function that should check everything your contract assumes to be true all the time. If this function returns false, it means your contract was broken in some way and is in an inconsistent state. This is what security researchers will try to acomplish when trying to get the bounty. At contracts/YourContract.sol:: @@ -35,7 +35,7 @@ At ```migrations/2_deploy_contracts.js```:: deployer.deploy(YourBounty); }; -Next, add a reward to the bounty contract +Next, add a reward to the bounty contract. After deploying the contract, send reward funds into the bounty contract.