From 8deb5aaca3a9de3acb154b439232f4a1ecec15be Mon Sep 17 00:00:00 2001 From: Pham Tu Date: Wed, 24 Jan 2024 11:58:22 +0700 Subject: [PATCH] show raw log --- src/modules/[chain]/tx/[hash].vue | 18 ++++++++++++++++++ src/plugins/i18n/locales/en.json | 4 +++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/modules/[chain]/tx/[hash].vue b/src/modules/[chain]/tx/[hash].vue index c7cc2c78..2128a8fe 100644 --- a/src/modules/[chain]/tx/[hash].vue +++ b/src/modules/[chain]/tx/[hash].vue @@ -22,6 +22,12 @@ if (props.hash) { const messages = computed(() => { return tx.value?.tx?.body?.messages || []; }); + +const rawLog = computed(() => { + return tx.value?.txResponse?.rawLog + ? JSON.parse(tx.value?.txResponse?.rawLog) + : tx.value?.txResponse?.logs || []; +});