Skip to content

Commit

Permalink
Fix token addresses for notification service (#1674)
Browse files Browse the repository at this point in the history
* Fix addresses for ntfc. service

* Clarify error message in test
  • Loading branch information
jmrossy authored Nov 12, 2019
1 parent d350720 commit 110f856
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/notification-service/src/util/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export async function getTokenAddresses() {
return { goldTokenAddress, stableTokenAddress }
} else {
const kit = await getContractKit()
goldTokenAddress = await kit.registry.addressFor(CeloContract.StableToken)
stableTokenAddress = await kit.registry.addressFor(CeloContract.GoldToken)
goldTokenAddress = await kit.registry.addressFor(CeloContract.GoldToken)
stableTokenAddress = await kit.registry.addressFor(CeloContract.StableToken)
return { goldTokenAddress, stableTokenAddress }
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/notification-service/test/transfers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ describe('Transfers', () => {
// as we need both the gold and stable transfers fetch from blockscout to work
// in order to send the right push notifications
it('should propagate fetch errors', async () => {
fetchMock.mockRejectedValue(new Error('fetch error'))
await expect(handleTransferNotifications()).rejects.toThrow('fetch error')
fetchMock.mockRejectedValue(new Error('FAKE ERROR, IGNORE'))
await expect(handleTransferNotifications()).rejects.toThrow('FAKE ERROR, IGNORE')
expect(sendPaymentNotificationMock).not.toHaveBeenCalled()
expect(setLastBlockNotifiedMock).not.toHaveBeenCalled()
})
Expand Down

0 comments on commit 110f856

Please sign in to comment.