Skip to content
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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

lukaw3d
Copy link
Member

@lukaw3d lukaw3d commented Sep 10, 2024

For discussion. At some point we also discussed removing these two gas events.

https://explorer.dev.oasis.io/testnet/sapphire/tx/0x5ab245233b9f467f55d8dba437a59fac7c9abd91b0e5cec0312686f4a87c07f5
image

Copy link

github-actions bot commented Sep 10, 2024

Deployed to Cloudflare Pages

Latest commit: ed8b09c3f1389d30f1c33cbf0ab746a39395c1a1
Status:✅ Deploy successful!
Preview URL: https://66afb9d6.oasis-explorer.pages.dev

@lubej
Copy link
Collaborator

lubej commented Sep 10, 2024

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.

Comment on lines +24 to +31
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
})
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants