From 7577698a1c3966ce0652932d073b52c875d4ed61 Mon Sep 17 00:00:00 2001 From: willclarktech Date: Wed, 10 Feb 2021 17:36:02 +0000 Subject: [PATCH] launchpad: Widen allowed eventType in logs.findAttribute --- packages/launchpad/src/logs.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/launchpad/src/logs.ts b/packages/launchpad/src/logs.ts index bd5798af..6dc2df30 100644 --- a/packages/launchpad/src/logs.ts +++ b/packages/launchpad/src/logs.ts @@ -68,11 +68,7 @@ export function parseLogs(input: unknown): readonly Log[] { * * Throws if the attribute was not found. */ -export function findAttribute( - logs: readonly Log[], - eventType: "message" | "transfer", - attrKey: string, -): Attribute { +export function findAttribute(logs: readonly Log[], eventType: string, attrKey: string): Attribute { const firstLogs = logs.find(() => true); const out = firstLogs?.events .find((event) => event.type === eventType)