aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--whisper/shhclient/client.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/whisper/shhclient/client.go b/whisper/shhclient/client.go
index 61c1b7ab7..61b4775d9 100644
--- a/whisper/shhclient/client.go
+++ b/whisper/shhclient/client.go
@@ -45,8 +45,8 @@ func NewClient(c *rpc.Client) *Client {
}
// Version returns the Whisper sub-protocol version.
-func (sc *Client) Version(ctx context.Context) (uint, error) {
- var result uint
+func (sc *Client) Version(ctx context.Context) (string, error) {
+ var result string
err := sc.c.CallContext(ctx, &result, "shh_version")
return result, err
}