-
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
Reduce visibility of gas and fee events #1531
base: master
Are you sure you want to change the base?
Conversation
Deployed to Cloudflare Pages
|
I am all for removing the event (to -> Fee accumulator). As other explorers don't show the event. For me it doesn't make sense as the event did not originate from the interacted contract - and it's duplicated as you have Gas Price row, which shows the value that you are interested in. |
const sortedEvents = events?.slice().sort((a, b) => { | ||
// Attempt to sort gas/fee events to the bottom of a transaction. | ||
// If events are paginated, it might not be at the end. | ||
if (a.tx_hash === b.tx_hash) { | ||
return (isGasFeeEvent(a) ? 1 : 0) - (isGasFeeEvent(b) ? 1 : 0) | ||
} | ||
return 0 | ||
}) |
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.
For discussion. At some point we also discussed removing these two gas events.
https://explorer.dev.oasis.io/testnet/sapphire/tx/0x5ab245233b9f467f55d8dba437a59fac7c9abd91b0e5cec0312686f4a87c07f5