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

fix!: Add info-tooltips for Gas Used and Gas Consumed in ContractResult. #1636

Merged
merged 1 commit into from
Feb 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/components/contract/ContractResult.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
/>
</template>
</Property>
<Property id="gasUsed">
<Property id="gasUsed" :tooltip="gasUsedTooltip">
<template v-slot:name>Gas Used</template>
<template v-slot:value>
<GasAmount
Expand All @@ -92,7 +92,7 @@
/>
</template>
</Property>
<Property id="gasConsumed">
<Property id="gasConsumed" :tooltip="gasConsumedTooltip">
<template v-slot:name>Gas Consumed</template>
<template v-slot:value>
<GasAmount
Expand Down Expand Up @@ -198,6 +198,9 @@ const props = defineProps({
}
})

const gasUsedTooltip = "This represents the actual amount of gas (i.e. the real computational effort) required to execute the smart contract."
const gasConsumedTooltip = "This represents the amount of gas that is actually deducted from the user's balance (i.e it may include additional factors like base fees or refunds, etc…)."

const isSmallScreen = inject('isSmallScreen', true)
const isMediumScreen = inject('isMediumScreen', true)

Expand Down
Loading