diff --git a/cmd/soroban-rpc/internal/transactions/transactions_test.go b/cmd/soroban-rpc/internal/transactions/transactions_test.go index f0c0060d..1683f986 100644 --- a/cmd/soroban-rpc/internal/transactions/transactions_test.go +++ b/cmd/soroban-rpc/internal/transactions/transactions_test.go @@ -20,6 +20,7 @@ func expectedTransaction(t *testing.T, ledger uint32, feeBump bool) Transaction FeeBump: feeBump, ApplicationOrder: 1, Ledger: expectedLedgerInfo(ledger), + Events: [][]byte{}, } var err error tx.Result, err = transactionResult(ledger, feeBump).MarshalBinary() @@ -359,7 +360,7 @@ func TestGetTransactionsWithEventData(t *testing.T) { tx, ok, _ := store.GetTransaction(txHash(1, false)) require.True(t, ok) require.NotNil(t, tx.Events) - require.Len(t, len(tx.Events), 1) + require.Len(t, tx.Events, 1) } func stableHeapInUse() int64 {