Skip to content

Commit

Permalink
Fix WETH test which broke from changes in commit de5a8d0
Browse files Browse the repository at this point in the history
  • Loading branch information
mds1 authored and elenadimitrova committed May 25, 2021
1 parent 35a94d1 commit f5b905d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/PeripheryImmutableState.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ describe('PeripheryImmutableState', () => {

describe('#WETH9', () => {
it('points to WETH9', async () => {
expect(await state.WETH9()).to.eq(weth9.address)
// In commit de5a8d0 the WETH address was removed as an input and hardcoded as a constant. This was done
// to reduce contract size, so as a result this test would fail because the hardcoded address returned from
// `State.WETH9()` will not match the address of WETH that was deployed here. As a result, we modified this
// test to hardcode the OVM WETH address here as well, to verify that the contract's WETH address is correct
// https://github.com/ScopeLift/uniswap-v3-periphery-ovm/commit/de5a8d08c686471c1d5c29e9632bbe083ca88188
expect(await state.WETH9()).to.eq('0x4200000000000000000000000000000000000006')
})
})

Expand Down

0 comments on commit f5b905d

Please sign in to comment.