From 8a45680a8e4367f515a6e75220f4ebc722b8a732 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Wed, 15 Nov 2023 15:11:02 +0800 Subject: [PATCH 1/2] improve received --- src/modules/[chain]/account/[address].vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/[chain]/account/[address].vue b/src/modules/[chain]/account/[address].vue index 6f94f33a..45930f46 100644 --- a/src/modules/[chain]/account/[address].vue +++ b/src/modules/[chain]/account/[address].vue @@ -571,7 +571,7 @@ function updateEvent() {
- {{ v.events.find(x => x.type==='coin_received')?.attributes.filter(x => x.key === 'YW1vdW50').map(x => String.fromCharCode(...fromBase64(x.value))).join(", ")}} + {{ v.events.find(x => x.type==='coin_received')?.attributes.filter(x => x.key === 'YW1vdW50'||x.key === 'amount').map(x => String.fromCharCode(...fromBase64(x.value))).join(", ")}}
Date: Wed, 15 Nov 2023 15:30:51 +0800 Subject: [PATCH 2/2] only support base64 --- src/modules/[chain]/account/[address].vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/[chain]/account/[address].vue b/src/modules/[chain]/account/[address].vue index 45930f46..6f94f33a 100644 --- a/src/modules/[chain]/account/[address].vue +++ b/src/modules/[chain]/account/[address].vue @@ -571,7 +571,7 @@ function updateEvent() {
- {{ v.events.find(x => x.type==='coin_received')?.attributes.filter(x => x.key === 'YW1vdW50'||x.key === 'amount').map(x => String.fromCharCode(...fromBase64(x.value))).join(", ")}} + {{ v.events.find(x => x.type==='coin_received')?.attributes.filter(x => x.key === 'YW1vdW50').map(x => String.fromCharCode(...fromBase64(x.value))).join(", ")}}