Skip to content

Commit ee2c5db

Browse files
authored
fix!: Add info-tooltips for Gas Used and Gas Consumed in ContractResult. (#1636)
Signed-off-by: Simon Viénot <simon.vienot@icloud.com>
1 parent c153686 commit ee2c5db

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/contract/ContractResult.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
/>
8484
</template>
8585
</Property>
86-
<Property id="gasUsed">
86+
<Property id="gasUsed" :tooltip="gasUsedTooltip">
8787
<template v-slot:name>Gas Used</template>
8888
<template v-slot:value>
8989
<GasAmount
@@ -92,7 +92,7 @@
9292
/>
9393
</template>
9494
</Property>
95-
<Property id="gasConsumed">
95+
<Property id="gasConsumed" :tooltip="gasConsumedTooltip">
9696
<template v-slot:name>Gas Consumed</template>
9797
<template v-slot:value>
9898
<GasAmount
@@ -198,6 +198,9 @@ const props = defineProps({
198198
}
199199
})
200200
201+
const gasUsedTooltip = "This represents the actual amount of gas (i.e. the real computational effort) required to execute the smart contract."
202+
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…)."
203+
201204
const isSmallScreen = inject('isSmallScreen', true)
202205
const isMediumScreen = inject('isMediumScreen', true)
203206

0 commit comments

Comments
 (0)