From e09fc00188c5d0a7983c48c149f4e2b072807d99 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Mon, 26 Feb 2024 22:17:16 +0300 Subject: [PATCH 1/2] rpcclient: fix address used in doc This one doesn't really work now, it's Legacy. Replace with something N3-ish. Thanks @lock9 for reporting. Signed-off-by: Roman Khimov --- pkg/rpcclient/doc_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/rpcclient/doc_test.go b/pkg/rpcclient/doc_test.go index d0fbe3e63..9ee6fd094 100644 --- a/pkg/rpcclient/doc_test.go +++ b/pkg/rpcclient/doc_test.go @@ -30,7 +30,7 @@ func Example() { os.Exit(1) } - addr, err := address.StringToUint160("ATySFJAbLW7QHsZGHScLhxq6EyNBxx3eFP") + addr, err := address.StringToUint160("NUkaBmzsZq1qdgaHfKrtRUcHNhtVJ2hTpv") if err != nil { fmt.Println(err) os.Exit(1) From 9d3258495fc32d6f08d92d7fe509dd525a54722a Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Mon, 26 Feb 2024 23:18:32 +0300 Subject: [PATCH 2/2] rpcclient: use better RPC endpoint for example Signed-off-by: Roman Khimov --- pkg/rpcclient/doc_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/rpcclient/doc_test.go b/pkg/rpcclient/doc_test.go index 9ee6fd094..9e05a617f 100644 --- a/pkg/rpcclient/doc_test.go +++ b/pkg/rpcclient/doc_test.go @@ -10,7 +10,7 @@ import ( ) func Example() { - endpoint := "http://seed5.bridgeprotocol.io:10332" + endpoint := "https://rpc.t5.n3.nspcc.ru:20331" opts := rpcclient.Options{} c, err := rpcclient.New(context.TODO(), endpoint, opts)