Closed bh2smith closed 5 years ago
I wonder if creating a PR that fixes this, would take roughly the same time as creating this issue 😉
Actually, it turns out, we need to do something like the following (in order for SnappAuction to be deployed)
module.exports = function (deployer) {
deployer.deploy(BiMap)
deployer.link(BiMap, SnappAuction)
deployer.deploy(SnappAuction)
}
In the following migration script, there is no need to keep line 9 (since the linking somehow deploys the contract to the same address as the Library).
https://github.com/gnosis/dex-contracts/blob/40fdaaf32ecb6370f070691340270a040d2523a6/migrations/3_batch_auction.js#L6-L12
This could equivalently be migrated as