Skip to content

Commit

Permalink
fix!: Add info-tooltips for Gas Used and Gas Consumed in ContractResu…
Browse files Browse the repository at this point in the history
…lt. (#1636)

Signed-off-by: Simon Viénot <[email protected]>
  • Loading branch information
svienot authored Feb 18, 2025
1 parent c153686 commit ee2c5db
Showing 1 changed file with 5 additions and 2 deletions.
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

0 comments on commit ee2c5db

Please sign in to comment.