Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docs): fix example rpcclient.NewHTTPClient returning variables (#…
…2352) In the [how to connect a Go app to Gno.land](https://docs.gno.land/how-to-guides/connect-from-go) tutorial I got an error when I tried to run this line: ```go rpc := rpcclient.NewHTTPClient("<gno_chain_endpoint>") ``` It seems that NewHTTPClient returns 2 values ```go func NewHTTPClient(rpcURL string) (*RPCClient, error); ``` and in the example we assign only one variable. I updated the examples with: ```go rpc, err := rpcclient.NewHTTPClient("<gno.land_remote_endpoint>") if err != nil { panic(err) } ``` There is also a step where `crypto.AddressFromBech32` is used but I didn't found when the `crypto` was imported so I also added it in the doc: ```go import ( ... crypto "github.com/gnolang/gno/tm2/pkg/crypto" ) ``` --------- Co-authored-by: Morgan <[email protected]>
- Loading branch information