From 39fbb2ae0eabb30113304df91539026e0eb49de6 Mon Sep 17 00:00:00 2001 From: Ondra Chaloupka Date: Tue, 14 Nov 2023 11:59:52 +0100 Subject: [PATCH] [CLI] reformat fix of event log show --- packages/marinade-ts-cli/src/commands/showEvent.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/marinade-ts-cli/src/commands/showEvent.ts b/packages/marinade-ts-cli/src/commands/showEvent.ts index 71eb987..4d8cb25 100644 --- a/packages/marinade-ts-cli/src/commands/showEvent.ts +++ b/packages/marinade-ts-cli/src/commands/showEvent.ts @@ -24,6 +24,10 @@ async function showEvent({ eventData }: { eventData: string }) { }) const marinade = new Marinade(marinadeConfig) + eventData = eventData + .trim() + .replace(/Program data:/g, '') + .trim() const decodedData = marinade.marinadeFinanceProgram.program.coder.events.decode(eventData) ?? marinade.marinadeReferralProgram.program.coder.events.decode(eventData)