Skip to content

Commit

Permalink
Fixed wrong method usage (#224)
Browse files Browse the repository at this point in the history
Co-authored-by: Rob <robsonsjre@gmail.com>
  • Loading branch information
ggviana and Robsonsjre committed Apr 27, 2021
1 parent 586abd4 commit d7542c9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/amm/OptionAMMFactory.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('OptionAMMFactory', () => {
configurationManager
})
priceProviderMock = mock.priceProvider
configurationManager.setPriceProvider(priceProviderMock.address)
await configurationManager.setPriceProvider(priceProviderMock.address)
})

beforeEach(async () => {
Expand Down
4 changes: 2 additions & 2 deletions test/amm/OptionAMMPool.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ scenarios.forEach(scenario => {
answeredInRound: 1
})
priceProvider = await PriceProvider.deploy(configurationManager.address, [mockUnderlyingAsset.address], [defaultPriceFeed.contract.address])
configurationManager.setPriceProvider(priceProvider.address)
await configurationManager.setPriceProvider(priceProvider.address)

factoryContract = await createOptionFactory(weth.address, configurationManager)

option = await createMockOption({
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/OptionHelper.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('OptionHelper', () => {
tokenAddress: underlyingAsset.address,
configurationManager
})
configurationManager.setPriceProvider(mock.priceProvider.address)
await configurationManager.setPriceProvider(mock.priceProvider.address)

option = await createMockOption({
configurationManager,
Expand Down

0 comments on commit d7542c9

Please sign in to comment.