-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Common getTokenType used on UI, monitor and Oracle #165
Conversation
I'm having trouble understanding usage of In Oracle and UI, the first parameter of However, in monitor, foreign bridge contract is used as the first parameter of So it seems to me like currently Monitor is broken and does not work with erc677 bridge token. @akolotov @patitonar Could you please take a look? |
@akolotov @patitonar
These 3 types of bridges are tested in Should we maybe test 4th type of bridge - erc-to-erc, with |
Good catch @rzadp! It seems the monitor is not using There is no need to add a new env variable since we are getting the address of the token from the foreign bridge contract in the following line: Regarding the e2e test for this 4th bridge scenario (erc-to-erc with |
@patitonar In the line you referenced, there is Seems like a chicken-and-egg situation, when we cannot use |
@rzadp The code is kind of confusing for this. The To know which method use to get the token address from the bridge contract we need to know the bridge mode, we don't need the result of |
@patitonar Thanks for clarifying! So, to make sure I understand:
It that correct? |
@rzadp That's correct! |
I've done the changes and the PR is ready for review. |
We already have an issue for this: #56. Let's address it separately. |
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.
Please merge after @patitonar approval
getTokenType
incommons
getTokenType
tests fromui
tocommons