-
Notifications
You must be signed in to change notification settings - Fork 54
feat(swapper): remove deprecated getSwapper method #853
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, all references to manager.getSwapper()
are removed in tests and replaced by Map.prototype.get()
🍬
'[validateSwapper] - invalid swapper instance' | ||
) | ||
expect(swapper.swappers.get(SwapperType.Thorchain)).toBeInstanceOf(ThorchainSwapper) | ||
expect(swapper.swappers.get(SwapperType.Zrx)).toBeInstanceOf(ZrxSwapper) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
expect(swapper.swappers.get(SwapperType.Zrx)).toBeInstanceOf(ZrxSwapper) |
This feels a little weird to me having |
as discussed - let's talk to the manager through it's interfaces it exposes, rather than the raw map of swappers |
@0xApotheosis plz undeprecate this (lol) as to not cause future confusion |
getSwapper
is deprecated, and is now only used in tests.This PR removes it and uses
Map.prototype.get()
in the tests instead.