diff options
author | baizhenxuan <nkbai@163.com> | 2017-10-18 17:16:12 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2017-10-18 17:16:12 +0800 |
commit | eea996e4e1820d32a8ec82b03ff6bd17574770e7 (patch) | |
tree | 7d1129faf2d73aab5a1e6a3506898deab3899753 /whisper/shhclient/client.go | |
parent | 2ab7fe89823b4d96356175776e3df44d00c214d7 (diff) | |
download | go-tangerine-eea996e4e1820d32a8ec82b03ff6bd17574770e7.tar go-tangerine-eea996e4e1820d32a8ec82b03ff6bd17574770e7.tar.gz go-tangerine-eea996e4e1820d32a8ec82b03ff6bd17574770e7.tar.bz2 go-tangerine-eea996e4e1820d32a8ec82b03ff6bd17574770e7.tar.lz go-tangerine-eea996e4e1820d32a8ec82b03ff6bd17574770e7.tar.xz go-tangerine-eea996e4e1820d32a8ec82b03ff6bd17574770e7.tar.zst go-tangerine-eea996e4e1820d32a8ec82b03ff6bd17574770e7.zip |
whisper/shhclient: fix Version return type (#15306)
Diffstat (limited to 'whisper/shhclient/client.go')
-rw-r--r-- | whisper/shhclient/client.go | 4 |
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 } |