Skip to content

Commit

Permalink
Change LP TestProcess to expect saved log data to contain the Discrim…
Browse files Browse the repository at this point in the history
…inator
  • Loading branch information
ilija42 committed Jan 17, 2025
1 parent d72bc83 commit 97a6601
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/solana/logpoller/log_poller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -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)
Expand Down

0 comments on commit 97a6601

Please sign in to comment.