Skip to content

Commit

Permalink
Update client.go
Browse files Browse the repository at this point in the history
  • Loading branch information
qg5 authored Jul 28, 2024
1 parent 10a6a76 commit 5ae0e1c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions literpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ const (
TestnetRPCURL = "https://api.testnet.solana.com"
)

type LiteRpcClient struct {
type Client struct {
endpoint string
}

func New(endpoint string) *LiteRpcClient {
return &LiteRpcClient{
func New(endpoint string) *Client {
return &Client{
endpoint: endpoint,
}
}
Expand All @@ -29,7 +29,7 @@ type JsonRPCResponse struct {
Result json.RawMessage `json:"result"`
}

func (client *LiteRpcClient) call(method string, params interface{}, result interface{}) error {
func (client *Client) call(method string, params interface{}, result interface{}) error {
payload, err := json.Marshal(map[string]interface{}{
"jsonrpc": "2.0",
"id": "1",
Expand Down

0 comments on commit 5ae0e1c

Please sign in to comment.