[#1514] adm/nns: Rename getRPCClient() to nnsWriter()

Make it more specific and similar to nnsReader().

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2024-11-21 10:54:14 +03:00 committed by Evgenii Stratonikov
parent e5ea95c045
commit 256f96e252
5 changed files with 8 additions and 8 deletions

View file

@ -11,7 +11,7 @@ import (
"github.com/spf13/viper"
)
func getRPCClient(cmd *cobra.Command) (*client.Contract, *helper.LocalActor) {
func nnsWriter(cmd *cobra.Command) (*client.Contract, *helper.LocalActor) {
v := viper.GetViper()
c, err := helper.GetN3Client(v)
commonCmd.ExitOnErr(cmd, "unable to create NEO rpc client: %w", err)