Skip to content

Instantly share code, notes, and snippets.

@devonwesley
Created October 9, 2017 01:05
Show Gist options
  • Save devonwesley/d98fd262d7ed30b0444f6f8843029b58 to your computer and use it in GitHub Desktop.
Save devonwesley/d98fd262d7ed30b0444f6f8843029b58 to your computer and use it in GitHub Desktop.
This is the flow of how we're going to deploy our contracts for our reentrancy attack demonstration.
const Victim = artifacts.require('./Victim.sol')
const Attacker = artifacts.require('./Attacker.sol')
module.exports = function(deployer) {
deployer
.deploy(Victim)
.then(() =>
deployer.deploy(Attacker, Victim.address)
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment