-
Notifications
You must be signed in to change notification settings - Fork 9
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
Display EVM addresses in events #1364
Conversation
Deployed to Cloudflare Pages
|
resolveAddresses() | ||
}, [address, addressSwitchOption]) | ||
|
||
return <Component {...restProps} address={convertedAddress} /> |
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.
Ideally it should add a tooltip too. See
explorer/src/app/pages/RuntimeTransactionDetailPage/index.tsx
Lines 272 to 291 in 12e6c6f
<dd> | |
<TransactionInfoTooltip | |
label={ | |
from | |
? isOasisAddressFormat | |
? t('transaction.tooltips.senderTooltipOasis') | |
: t('transaction.tooltips.senderTooltipEth') | |
: t('transaction.tooltips.senderTooltipUnavailable') | |
} | |
> | |
<AccountLink | |
scope={transaction} | |
address={ | |
from || | |
((isOasisAddressFormat ? transaction?.sender_0_eth : transaction?.sender_0) as string) | |
} | |
/> | |
</TransactionInfoTooltip> | |
{from && <CopyToClipboard value={from} />} | |
</dd> |
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.
Ah, but the tooltip text is annoyingly specific (senderTooltipOasis, senderTooltipEth)
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.
Great point, but I think this should be included in the events as well. Even though I doubt the "validity" of it, in a sense, how much additional information it adds. But I guess we decided on this for a reason.
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.
Did add the tooltip inside withAddressSwitch
, but I am unsure of naming, to make it generic. Should we accept translations as an input? As withAddressSwitch
can be used as generic component, that could technically wrap TransactionLink
.
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 think having them as input shouldn't be too much overhead
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.
(in the current state of labels, it doesn't add much information, except when hovering transaction hash. Oasis transaction hashes don't have an obvious "oasis1" prefix)
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.
Yeah, wanted to discuss on next frontend sync, what labels we want and even if we want them(can always add them later) - and just remove the Tooltip for now. Will ping @donouwens next week.
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.
Removed Tooltip for now, as I probably won't be able to make it to the next FE sync + Don as well. So we can discuss on the next one, that we are all able to join. Just want to get this ready for release before the conference.
cc35a94
to
3f2eb9a
Compare
3fe333f
to
83879a2
Compare
83879a2
to
41492be
Compare
cabd21b
to
d2bd853
Compare
d2bd853
to
8ff6e0c
Compare
- refactor address variables in withAddressSwitch
8097964
to
05b290f
Compare
Related to oasisprotocol/nexus#653
Description
This pull request addresses the issue, where custom events do not take into account address type toggle.
Account to test with:
testnet/sapphire/tx/0x8a99091101d5ee03c3e120ee222eaafcff6715a324c3936f88e733231e1c3ea5