diff --git a/internal/models/ticket/ticket_test.go b/internal/models/ticket/ticket_test.go index 063158546..28b036ade 100644 --- a/internal/models/ticket/ticket_test.go +++ b/internal/models/ticket/ticket_test.go @@ -3,6 +3,7 @@ package ticket import ( "testing" + "github.com/baking-bad/bcdhub/internal/models/account" "github.com/stretchr/testify/require" ) @@ -15,19 +16,25 @@ func TestTicket_Hash(t *testing.T) { { name: "test 1", t: Ticket{ - TicketerID: 1, + TicketerID: 1, + Ticketer: account.Account{ + Address: "address1", + }, ContentType: []byte(`{}`), Content: []byte(`{}`), }, - want: "1e938ee9817c472dab8b9a6601d7266592ad45186d24ddd1a92bba08854f71b2", + want: "49e3556aeeb72ede783c3a975bb10d8d19e14f0ab6b9d481de9f5ebeb0861a54", }, { name: "test 2", t: Ticket{ - TicketerID: 2, + TicketerID: 2, + Ticketer: account.Account{ + Address: "address2", + }, ContentType: []byte(`{}`), Content: []byte(`{}`), }, - want: "6238d736dd79c7274ffd96c912cd18df394a773400960859f0a3320610811a1e", + want: "bcb6d6dc0d03d874520f0948f127a421eafe27a97950e39a118a03179dfce460", }, } for _, tt := range tests { diff --git a/internal/parsers/operations/operation_group_test.go b/internal/parsers/operations/operation_group_test.go index fff99dbfa..901ba759e 100644 --- a/internal/parsers/operations/operation_group_test.go +++ b/internal/parsers/operations/operation_group_test.go @@ -2540,7 +2540,7 @@ func TestGroup_Parse(t *testing.T) { }, }, Tickets: map[string]*ticket.Ticket{ - "c4a3e1aa42bafd749abb7b7c6732a344b4794cf626c3a9d260e1fadef5e2438e": { + "44f09c8c9d1135c11c71f31ab4126d464cad6067010e1d440e4749331450d860": { Level: 1616868, Ticketer: account.Account{ Address: "KT1Nux298EEiVoTzF7jQS3iBV3K4ShN8ucSP",