Name: diligence-takehome
Owner: ConsenSys
Description: null
Created: 2017-12-26 15:44:07.0
Updated: 2018-01-04 18:29:53.0
Pushed: 2017-12-26 16:07:19.0
Homepage: null
Size: 5
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
PLEASE DO NOT FORK THIS REPOSITORY.
Hello, we're excited to have your interest in ConsenSys Diligence, and we appreciate you taking the time to complete our take home challenge.
In this repository you'll find a contract name HackableToken.sol
. This is an ERC20 contract, with a totalSupply of tokens based on ETH deposits. A deposit of 1 ETH, get's 1 token. There is an issue with this token, which makes it possible for an attacker to withdraw more than they have deposited!
To complete the challenge:
Attacker.sol
contracttest/attack.js
, so that all tests pass.Vulnerability.md
, according to the headings and comments in that file.Once complete, send us a zip file containing this repository with your additions.
npm run ganache
to run a local blockchain. (Ganache is the new name for testrpc)npm run test
to use the locally installed version of truffle.It's quite possible there's some detail missing from this description.