Skip to content

Commit

Permalink
chainreader: fix regression: RPC requires an array of items, not nil (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer authored Feb 20, 2025
1 parent 8953ce7 commit e8b2d8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/solana/chainreader/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ func doMethodBatchCall(ctx context.Context, lggr logger.Logger, client MultipleA
results := make([]batchResultWithErr, len(batch))

// create the list of public keys to fetch
var keys []solana.PublicKey
// Solana RPC expects at least an empty list, not nil
keys := []solana.PublicKey{}

// map batch call index to key index (some calls are event reads and will be handled by a different binding)
dataMap := make(map[int]int)
Expand Down

0 comments on commit e8b2d8a

Please sign in to comment.