From 97a6601c31a03e62dc6e4ea6e809ea703b268c3a Mon Sep 17 00:00:00 2001 From: ilija Date: Thu, 16 Jan 2025 13:22:59 +0100 Subject: [PATCH] Change LP TestProcess to expect saved log data to contain the Discriminator --- pkg/solana/logpoller/log_poller_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/solana/logpoller/log_poller_test.go b/pkg/solana/logpoller/log_poller_test.go index e5a1d1854..b7912d3fc 100644 --- a/pkg/solana/logpoller/log_poller_test.go +++ b/pkg/solana/logpoller/log_poller_test.go @@ -52,6 +52,7 @@ func TestProcess(t *testing.T) { expectedLog.Data, err = bin.MarshalBorsh(&event) require.NoError(t, err) + expectedLog.Data = append(eventSig[:], expectedLog.Data...) ev := ProgramEvent{ Program: addr.ToSolana().String(), BlockData: BlockData{ @@ -63,7 +64,7 @@ func TestProcess(t *testing.T) { TransactionIndex: txIndex, TransactionLogIndex: txLogIndex, }, - Data: base64.StdEncoding.EncodeToString(append(eventSig[:], expectedLog.Data...)), + Data: base64.StdEncoding.EncodeToString(expectedLog.Data), } orm := newMockORM(t)