Uniswap / sdk-core

⚙️ Code shared across TypeScript Uniswap SDK versions
MIT License
121 stars 354 forks source link

fix: the object reduce return a string #61

Closed 0xAliya closed 1 year ago

0xAliya commented 1 year ago

I'm getting an error using version 3.2.4, details are as follows.

return memo[chainId] = CHAIN_TO_ADDRESSES_MAP[chainId].v3CoreFactoryAddress;
                       ^

TypeError: Cannot assign to read only property '10' of string '0x1F98431c8aD98523631AE4a59f267346ea31F984'
    at D:\workspace\sdk-core\dist\sdk-core.cjs.development.js:190:24