From 7a48320d265eeb65909a503d7492699813e1ba14 Mon Sep 17 00:00:00 2001 From: rianhughes Date: Wed, 22 Nov 2023 12:35:25 +0200 Subject: [PATCH] rpcv06 update emitted event --- rpc/types_event.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpc/types_event.go b/rpc/types_event.go index 04285ae6..ab5a0341 100644 --- a/rpc/types_event.go +++ b/rpc/types_event.go @@ -23,9 +23,9 @@ type EventChunk struct { type EmittedEvent struct { Event // BlockHash the hash of the block in which the event was emitted - BlockHash *felt.Felt `json:"block_hash"` + BlockHash *felt.Felt `json:"block_hash,omitempty"` // BlockNumber the number of the block in which the event was emitted - BlockNumber uint64 `json:"block_number"` + BlockNumber uint64 `json:"block_number,omitempty"` // TransactionHash the transaction that emitted the event TransactionHash *felt.Felt `json:"transaction_hash"` }