Skip to content

Commit

Permalink
Return pk instead of pkh in gRPC validateAddress (decred#1255)
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusd authored and githubsands committed Aug 19, 2018
1 parent 481f1f8 commit f57af74
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit f57af74

Please sign in to comment.