Skip to content

Commit

Permalink
Merge pull request #6 from gnosis/fix-mock-behavior
Browse files Browse the repository at this point in the history
`truffle test` should work when build dir is present
  • Loading branch information
V1rtuousCycle committed Dec 13, 2018
2 parents 83796fa + 6e41f38 commit f566542
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/ERC20Mintable.sol → test/MockCoin.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pragma solidity ^0.5.1;
import { ERC20Mintable } from "openzeppelin-solidity/contracts/token/ERC20/ERC20Mintable.sol";
// dirty hack

contract MockCoin is ERC20Mintable {}
2 changes: 1 addition & 1 deletion test/test_pm_system.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { assertRejects, getParamFromTxEvent } = require("./utils");
const { toHex, padLeft, keccak256, asciiToHex, toBN, fromWei } = web3.utils;

const PredictionMarketSystem = artifacts.require("PredictionMarketSystem");
const ERC20Mintable = artifacts.require("ERC20Mintable");
const ERC20Mintable = artifacts.require("MockCoin");

contract("PredictionMarketSystem", function(accounts) {
let collateralToken;
Expand Down

0 comments on commit f566542

Please sign in to comment.