Update DepositFactory tests
We need to set a price to avoid a revert.
TBTCSystem contract will revert if the price is 0 or > 10**18
@@ -20,6 +20,7 @@ contract('DepositFactory', () => {
describe('createDeposit()', async () => {
let depositFactory
let ecdsaKeepFactoryStub
+ let mockBTCETHPriceFeed
before(async () => {
// To properly test createDeposit, we deploy the real Deposit contract and
@@ -56,7 +57,9 @@ contract('DepositFactory', () => {
({
ecdsaKeepFactoryStub,
depositFactory,
+ mockBTCETHPriceFeed,
} = await deployTestDeposit([], { 'TestDeposit': Deposit, 'TBTCSystemStub': TBTCSystem }))
+ await mockBTCETHPriceFeed.setPrice(new BN('1000000000000', 10))
await depositFactory.createDeposit(
fullBtc,
