money-on-chain / main-RBTC-contract

DoC - Dollar on Chain - Stablecoin contract collateralized in RBTC.
Other
24 stars 16 forks source link

Refactor migration to avoid deploying two times the contracts #24

Closed pmprete closed 4 years ago

pmprete commented 4 years ago

This decreases time when testing the solution. It looks like a big refactor but most of it was due to renaming on migratios when deleting the deploy_develop_only step and deploy_lib that does the same as deploy_MocLib The issue with the tests not linking correctly the contract was that createContracts was being called without the parameter useMock. The solution was setting in mocHelper.js the default as true