From 68f7b20b3b319ee5faacd033ed64a84c9fd4c5ff Mon Sep 17 00:00:00 2001 From: murongshaozong Date: Wed, 19 Mar 2025 18:09:18 +0800 Subject: [PATCH] chore: make function comment match function name Signed-off-by: murongshaozong --- rpc/getTransaction.go | 2 +- rpc/ws/programSubscribe.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,