Commit 1333f45c by Brett Sun Committed by GitHub

Add missing code blocks to bounty docs

parent 2ad88b59
...@@ -14,7 +14,7 @@ To create a bounty for your contract, inherit from the base `Bounty` contract an ...@@ -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. 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:: At contracts/YourContract.sol::
...@@ -35,7 +35,7 @@ At ```migrations/2_deploy_contracts.js```:: ...@@ -35,7 +35,7 @@ At ```migrations/2_deploy_contracts.js```::
deployer.deploy(YourBounty); 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. After deploying the contract, send reward funds into the bounty contract.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment