Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[grpc] return pk instead of pkh in validateAddress #1255

Merged
merged 1 commit into from Aug 16, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions rpc/rpcserver/server.go
Expand Up @@ -61,10 +61,10 @@ import (

// Public API version constants
const (
semverString = "5.1.0"
semverString = "5.1.1"
semverMajor = 5
semverMinor = 1
semverPatch = 0
semverPatch = 1
)

// translateError creates a new gRPC error with an appropiate error code for
Expand Down Expand Up @@ -1696,7 +1696,7 @@ func (s *walletServer) ValidateAddress(ctx context.Context, req *pb.ValidateAddr
if err != nil {
return nil, err
}
result.PubKeyAddr = pubKeyAddr.EncodeAddress()
result.PubKeyAddr = pubKeyAddr.String()

case udb.ManagedScriptAddress:
result.IsScript = true
Expand Down