diff --git a/packages/dai/src/eth/EthereumTokenService.js b/packages/dai/src/eth/EthereumTokenService.js index cfc98574b..192392851 100644 --- a/packages/dai/src/eth/EthereumTokenService.js +++ b/packages/dai/src/eth/EthereumTokenService.js @@ -92,6 +92,8 @@ export default class EthereumTokenService extends PrivateService { ? tokenInfoList[version - 1] : tokenInfoList[tokenInfoList.length - 1]; + if (this._addressOverrides[symbol]) + tokenInfo.address = this._addressOverrides[symbol]; if (typeof tokenInfo.address === 'string') return tokenInfo; diff --git a/packages/dai/test/eth/EthereumTokenService.spec.js b/packages/dai/test/eth/EthereumTokenService.spec.js index 4b4b7f1a7..dc7c94683 100644 --- a/packages/dai/test/eth/EthereumTokenService.spec.js +++ b/packages/dai/test/eth/EthereumTokenService.spec.js @@ -68,4 +68,4 @@ test('addressOverrides', async () => { expect(service.getToken('PETH')._contract.address).toBe('0xmockpeth'); expect(service.getToken('WETH')._contract.address).toBe('0xmockweth'); -}); \ No newline at end of file +});