Skip to content

Commit

Permalink
CSDK/update_message_serialization
Browse files Browse the repository at this point in the history
Update messages serialization
  • Loading branch information
ZhmakAS committed Dec 19, 2024
1 parent 6ab70e8 commit b850a1c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/data/sse/transaction_processed_event.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
},
"messages": [
{
"entity_hash": "entity-contract-a9987538f3cceb823d627d6e28174fd7b50022c847db44b96c36077818e322ed",
"hash_addr": "9038763d3066f0217047263ebd48dc7c839fadfdde141f5b990866563655b44a",
"message": {
"String": "Transfer(Transfer { sender: Key::AddressableEntity(account-9fa1fc0808d3a5b9ea9f3af4ca7c8c3655568fdf378d8afdf8a7e56e58abbfd4), recipient: Key::AddressableEntity(account-ffaa73331421de42fd71a28824e1606a1ca7fa754f91f501f0cf56015f7284cd), amount: 12502 })"
},
Expand Down
1 change: 1 addition & 0 deletions tests/sse/events_parsing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ func Test_RawEvent_ParseAsTransactionProcessedEvent(t *testing.T) {
if tc.isTransaction {
require.NotEmpty(t, res.TransactionProcessedPayload.TransactionHash.TransactionV1)
require.NotEmpty(t, res.TransactionProcessedPayload.Messages)
require.NotEmpty(t, res.TransactionProcessedPayload.Messages[0].HashAddr)
} else {
require.NotEmpty(t, res.TransactionProcessedPayload.TransactionHash.Deploy)
}
Expand Down
2 changes: 1 addition & 1 deletion types/message_topic.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type Message struct {
// The hash of the name of the topic.
TopicNameHash key.Hash `json:"topic_name_hash"`
// The identity of the entity that produced the message.
EntityHash key.EntityAddr `json:"entity_hash"`
HashAddr key.Hash `json:"hash_addr"`
// Message index in the block.
BlockIndex uint64 `json:"block_index"`
// Message index in the topic.
Expand Down

0 comments on commit b850a1c

Please sign in to comment.