-
Notifications
You must be signed in to change notification settings - Fork 51
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
Add networkFees to EdgeTransaction type #628
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.
This is pretty good overall, but there are a few cleanups we should take care of.
dd8991e
to
29839d7
Compare
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.
One optional change, but this looks good now.
if (quote.networkFee != null && quote.networkFee.tokenId == null) { | ||
quote.networkFee.tokenId = quote.request.fromTokenId | ||
} |
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.
I would have put this code directly into fetchSwapQuotes
, rather than creating a separate method, since that's less cognitive load. Optional (but recommended) change, since this way works too.
This improves IDE integration.
The parentNetworkFee is not defined if the transaction is of the native currency. This was an issue when reading txs from disk (getTransations/streaming).
29839d7
to
80bd7cc
Compare
CHANGELOG
Does this branch warrant an entry to the CHANGELOG?
Dependencies
noneDescription
none