-
Notifications
You must be signed in to change notification settings - Fork 324
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
[SUPPORT] remove unnecessary check on tx networkInfo to render SendRowsFee #4010
[SUPPORT] remove unnecessary check on tx networkInfo to render SendRowsFee #4010
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
3280bb2
to
ef15d4a
Compare
not all crypto transaction types have a networkInfo property and some of them have some custom SendRowsFee component If a family SendRowsFee component display is dependent on the presence of a networkInfo property in the transaction object, these families own SendRowsFee component will never be displayed
ef15d4a
to
a6edf06
Compare
cherry-picked on develop and moved in this PR #4020 to make it independent from gas tracker work |
📝 Description
Following this comment #3945 (comment) and the related discussion, proposal to remove what seem to be an unnecessary condition on the existence of a
networkInfo
property on thetransaction
object to render (or not) a family customSendRowsFee
component.Not all crypto transaction types have a
networkInfo
property and some of them have some customSendRowsFee
component.If a family
SendRowsFee
component display is dependent on the presence of anetworkInfo
property in thetransaction
object, these families ownSendRowsFee
component will never be displayed.This condition seems odd because not all families have a
networkInfo
property in theirtransaction
. For examplealgorand
, but also the newevm
. But these families have their ownSendRowsFee
component defined in their family folder. Same thing forcelo
,polkadot
,solana
(here we even have some hardcoded patch, cf. this).So, based on this logic, as of today the
SendRowsFee
foralgorand
,celo
andpolkadot
would not be displayed.Furthermore, we don't seem to have similar logic on LLD (cf. here and here) where we don't have an condition on
networkInfo
.The only place where I found such condition on LLD are these 2 files (here and here) related to swap, which might probably be some legacy logic from original swap implementation since these 2 conditions control the display of the
SendAmountFields
file listed just above, and it would not make sense to always display this component on a normal send flow but not on a swap flow (if I can edit fees on a normal send, why could I not do it in a Swap flow?)❓ Context
LLM
LLD
✅ Checklist
📸 Demo
🚀 Expectations to reach
Please make sure you follow these Important Steps.
Pull Requests must pass the CI and be internally validated in order to be merged.