From 0935935cb911566d5e2e5f15c7b1c70f493ba360 Mon Sep 17 00:00:00 2001 From: Tomasz Kurcz Date: Tue, 22 Jun 2021 19:03:47 +0200 Subject: [PATCH] Go: add events to smart contract exec results --- types/msg.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/msg.go b/types/msg.go index 0c0d8c31b..9828bc0e6 100644 --- a/types/msg.go +++ b/types/msg.go @@ -25,6 +25,9 @@ type Response struct { Data []byte `json:"data"` // attributes for a log event to return over abci interface Attributes []EventAttribute `json:"attributes"` + // custom events (separate from the main one that contains the attributes + // above) + Events []Event `json:"events"` } // EventAttributes must encode empty array as []