Skip to content

Commit

Permalink
Revert "feat: show block as hlink in events section (#815)"
Browse files Browse the repository at this point in the history
This reverts commit 66049a1.
  • Loading branch information
svienot committed Jan 8, 2024
1 parent ee09bc6 commit ad68842
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 4 additions & 5 deletions src/components/contract/ContractResultLogEntry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<template v-slot:name>Block</template>
<template v-slot:value>
<p class="h-is-text-size-3">
<BlockLink :block-number="blockNumber"/>
{{ blockNumberToShow }}
</p>
</template>
</PropertyVertical>
Expand Down Expand Up @@ -106,7 +106,7 @@

<script lang="ts">

import {computed, defineComponent, inject, onBeforeUnmount, onMounted, PropType} from "vue";
import {computed, defineComponent, inject, onBeforeUnmount, onMounted, PropType, ref} from "vue";
import {ContractLog} from "@/schemas/HederaSchemas";
import PropertyVertical from "@/components/PropertyVertical.vue";
import StringValue from "@/components/values/StringValue.vue";
Expand All @@ -116,11 +116,10 @@ import {ContractLogAnalyzer} from "@/utils/analyzer/ContractLogAnalyzer";
import SignatureValue from "@/components/values/SignatureValue.vue";
import FunctionValue from "@/components/values/FunctionValue.vue";
import DashboardCard from '../DashboardCard.vue';
import BlockLink from "@/components/values/BlockLink.vue";

export default defineComponent({
name: "ContractResultLogEntry",
components: {BlockLink, FunctionValue, SignatureValue, EVMAddress, HexaValue, StringValue, PropertyVertical, DashboardCard },
components: { FunctionValue, SignatureValue, EVMAddress, HexaValue, StringValue, PropertyVertical, DashboardCard },
props: {
log: {
type: Object as PropType<ContractLog | null>,
Expand Down Expand Up @@ -165,7 +164,7 @@ export default defineComponent({
<!-- STYLE -->
<!-- --------------------------------------------------------------------------------------------------------------- -->

<style scoped>
<style scope>

.log-wrapper-grid {
position: relative;
Expand Down
2 changes: 0 additions & 2 deletions tests/unit/contract/ContractResultLogEntry.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ describe("ContractResultLogEntry.vue", () => {
await flushPromises()

expect(wrapper.get("#transactionHash").text()).toBe("Transaction Hashc7b2 ecff defd ec56 b809 f93b ef6c 8528 dad2 2e58 a02a 33c2 0d27 5f2e f279 36d5 6b1e d64b 53f9 20fb ac85 d9ca da4a 4e78Copy")
expect(wrapper.get("#blockNumber").find("a").exists()).toBeTruthy
expect(wrapper.get("#blockNumber").get("a").text()).toBe('9')
expect(wrapper.get("#blockNumber").text()).toBe("Block9")
expect(wrapper.get("#address").text()).toBe("Address0x00000000000000000000000000000000000b70cfCopy(0.0.749775)")
expect(wrapper.get("#Args").text()).toBe("LogsFlightEvent (string phase, int256 airspeed, int256 verticalSpeed)Topic 0 signature hash0x01f789d670afa3030578cc570ac4d43ace6f1575dd6c395a711e72a30051efd2string phaseHolding pointint256 airspeed0int256 verticalSpeed0")
Expand Down

0 comments on commit ad68842

Please sign in to comment.