Reference types don't need pointers

This commit is contained in:
gagliardetto 2022-02-09 00:22:39 +01:00
parent 4ca14ecad7
commit 965a81dfc1
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ func (cl *Client) GetBlocks(
startSlot uint64,
endSlot *uint64, // optional
commitment CommitmentType, // optional
) (out *BlocksResult, err error) {
) (out BlocksResult, err error) {
params := []interface{}{startSlot}
if endSlot != nil {
params = append(params, endSlot)

View File

@ -23,7 +23,7 @@ import (
// GetLeaderSchedule returns the leader schedule for current epoch.
func (cl *Client) GetLeaderSchedule(
ctx context.Context,
) (out *GetLeaderScheduleResult, err error) {
) (out GetLeaderScheduleResult, err error) {
return cl.GetLeaderScheduleWithOpts(
ctx,
nil,
@ -46,7 +46,7 @@ type GetLeaderScheduleOpts struct {
func (cl *Client) GetLeaderScheduleWithOpts(
ctx context.Context,
opts *GetLeaderScheduleOpts,
) (out *GetLeaderScheduleResult, err error) {
) (out GetLeaderScheduleResult, err error) {
params := []interface{}{}
if opts != nil {
if opts.Epoch != nil {