From d0af66358ebb64a55e3674cc3e935461e3655e32 Mon Sep 17 00:00:00 2001 From: ptrus Date: Tue, 10 Dec 2024 17:15:27 +0100 Subject: [PATCH] client-sdk/go: GetTransactionWithResults include txhash in events --- client-sdk/go/client/client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client-sdk/go/client/client.go b/client-sdk/go/client/client.go index 7ed80646be..7a2fa7e3d9 100644 --- a/client-sdk/go/client/client.go +++ b/client-sdk/go/client/client.go @@ -344,9 +344,10 @@ func (rc *runtimeClient) GetTransactionsWithResults(ctx context.Context, round u _ = cbor.Unmarshal(raw.Tx, &tx.Tx) // Ignore errors as there can be invalid transactions. _ = cbor.Unmarshal(raw.Result, &tx.Result) + txHash := tx.Tx.Hash() for _, rawEv := range raw.Events { var ev types.Event - if err := ev.UnmarshalRaw(rawEv.Key, rawEv.Value, nil); err != nil { + if err := ev.UnmarshalRaw(rawEv.Key, rawEv.Value, &txHash); err != nil { continue }