aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/shhclient
diff options
context:
space:
mode:
authorbaizhenxuan <nkbai@163.com>2017-10-18 17:16:12 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-10-18 17:16:12 +0800
commiteea996e4e1820d32a8ec82b03ff6bd17574770e7 (patch)
tree7d1129faf2d73aab5a1e6a3506898deab3899753 /whisper/shhclient
parent2ab7fe89823b4d96356175776e3df44d00c214d7 (diff)
downloaddexon-eea996e4e1820d32a8ec82b03ff6bd17574770e7.tar
dexon-eea996e4e1820d32a8ec82b03ff6bd17574770e7.tar.gz
dexon-eea996e4e1820d32a8ec82b03ff6bd17574770e7.tar.bz2
dexon-eea996e4e1820d32a8ec82b03ff6bd17574770e7.tar.lz
dexon-eea996e4e1820d32a8ec82b03ff6bd17574770e7.tar.xz
dexon-eea996e4e1820d32a8ec82b03ff6bd17574770e7.tar.zst
dexon-eea996e4e1820d32a8ec82b03ff6bd17574770e7.zip
whisper/shhclient: fix Version return type (#15306)
Diffstat (limited to 'whisper/shhclient')
-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
}