diff --git a/package.json b/package.json index 20eac5875..2015f838a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@uniswap/v2-sdk", "license": "MIT", - "version": "4.1.0", + "version": "4.2.0", "description": "🛠 An SDK for building applications on top of Uniswap V2", "main": "dist/index.js", "typings": "dist/index.d.ts", diff --git a/src/entities/pair.test.ts b/src/entities/pair.test.ts index ba397e773..45a41096d 100644 --- a/src/entities/pair.test.ts +++ b/src/entities/pair.test.ts @@ -60,7 +60,13 @@ describe('Pair', () => { }) it('returns the default address for a testnet not in the map', () => { - expect(Pair.getAddress(USDC_SEPOLIA, DAI_SEPOLIA)).toEqual(FACTORY_ADDRESS) + expect(Pair.getAddress(USDC_SEPOLIA, DAI_SEPOLIA)).toEqual( + computePairAddress({ + factoryAddress: FACTORY_ADDRESS, + tokenA: USDC_SEPOLIA, + tokenB: DAI_SEPOLIA + }) + ) }) })