From 3b5203020dd22e5ba6c4ba55846120ba9fb4e5c9 Mon Sep 17 00:00:00 2001 From: Andrew Richardson Date: Mon, 21 Aug 2023 14:54:57 -0400 Subject: [PATCH] Enrich events for contract deploy success/failure Signed-off-by: Andrew Richardson --- internal/events/event_enrich.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/internal/events/event_enrich.go b/internal/events/event_enrich.go index ff6a581c3..2036b202d 100644 --- a/internal/events/event_enrich.go +++ b/internal/events/event_enrich.go @@ -1,4 +1,4 @@ -// Copyright © 2022 Kaleido, Inc. +// Copyright © 2023 Kaleido, Inc. // // SPDX-License-Identifier: Apache-2.0 // @@ -110,7 +110,13 @@ func (em *eventEnricher) enrichEvent(ctx context.Context, event *core.Event) (*c return nil, err } e.TokenTransfer = transfer - case core.EventTypeApprovalOpFailed, core.EventTypeTransferOpFailed, core.EventTypeBlockchainInvokeOpFailed, core.EventTypePoolOpFailed, core.EventTypeBlockchainInvokeOpSucceeded: + case core.EventTypeApprovalOpFailed, + core.EventTypeTransferOpFailed, + core.EventTypePoolOpFailed, + core.EventTypeBlockchainInvokeOpFailed, + core.EventTypeBlockchainInvokeOpSucceeded, + core.EventTypeBlockchainContractDeployOpFailed, + core.EventTypeBlockchainContractDeployOpSucceeded: operation, err := em.operations.GetOperationByIDCached(ctx, event.Reference) if err != nil { return nil, err