Merge pull request #3327 from nspcc-dev/fix-rpcclient-doc

rpcclient: fix address used in doc
This commit is contained in:
Anna Shaleva 2024-02-27 11:43:42 +03:00 committed by GitHub
commit e55809f198
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,7 +10,7 @@ import (
) )
func Example() { func Example() {
endpoint := "http://seed5.bridgeprotocol.io:10332" endpoint := "https://rpc.t5.n3.nspcc.ru:20331"
opts := rpcclient.Options{} opts := rpcclient.Options{}
c, err := rpcclient.New(context.TODO(), endpoint, opts) c, err := rpcclient.New(context.TODO(), endpoint, opts)
@ -30,7 +30,7 @@ func Example() {
os.Exit(1) os.Exit(1)
} }
addr, err := address.StringToUint160("ATySFJAbLW7QHsZGHScLhxq6EyNBxx3eFP") addr, err := address.StringToUint160("NUkaBmzsZq1qdgaHfKrtRUcHNhtVJ2hTpv")
if err != nil { if err != nil {
fmt.Println(err) fmt.Println(err)
os.Exit(1) os.Exit(1)