Skip to content

Commit

Permalink
[CLI] reformat fix of event log show
Browse files Browse the repository at this point in the history
  • Loading branch information
ochaloup committed Nov 14, 2023
1 parent 926efe6 commit 39fbb2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/marinade-ts-cli/src/commands/showEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 39fbb2a

Please sign in to comment.