Attempt at cracking 0xpoland.dev puzzle contract: https://etherscan.io/address/0x46CA2bf8188303887d6AF76ddD316AFa233b2ec9 info: www.0xpoland.dev twitter: https://twitter.com/0xPoland
- install deps (requires nodejs, npm)
npm -i ganache-cli truffle
- in 1 terminal, run
ganache-cli
- in another terminal at this folder, compile the contract
truffle compile Puzzle
- and then deploy it
truffle migrate > output.log
- Now you are ready to test. Edit reveal.js with your answer and run:
truffle exec migrations/4_reveal.js --network development > output.log
- Check the output, if it has 'invalid' you guessed wrong.
if you get stuck, refer to this article https://medium.com/haloblock/deploy-your-own-smart-contract-with-truffle-and-ganache-cli-beginner-tutorial-c46bce0bd01e