diff --git a/rpc/getTransaction.go b/rpc/getTransaction.go index ea42ae226..d0f5b0ce4 100644 --- a/rpc/getTransaction.go +++ b/rpc/getTransaction.go @@ -148,7 +148,7 @@ func (dt *TransactionResultEnvelope) GetData() solana.Data { return dt.asDecodedBinary } -// GetRawJSON returns a *solana.Transaction when the data +// GetTransaction returns a *solana.Transaction when the data // encoding is EncodingJSON. func (dt *TransactionResultEnvelope) GetTransaction() (*solana.Transaction, error) { if dt.asDecodedBinary.Content != nil { diff --git a/rpc/ws/programSubscribe.go b/rpc/ws/programSubscribe.go index cac4fca8e..9ec443914 100644 --- a/rpc/ws/programSubscribe.go +++ b/rpc/ws/programSubscribe.go @@ -42,7 +42,7 @@ func (cl *Client) ProgramSubscribe( ) } -// ProgramSubscribe subscribes to a program to receive notifications +// ProgramSubscribeWithOpts subscribes to a program to receive notifications // when the lamports or data for a given account owned by the program changes. func (cl *Client) ProgramSubscribeWithOpts( programID solana.PublicKey,