Commit eea996e4 authored by baizhenxuan's avatar baizhenxuan Committed by Felix Lange

whisper/shhclient: fix Version return type (#15306)

parent 2ab7fe89
...@@ -45,8 +45,8 @@ func NewClient(c *rpc.Client) *Client { ...@@ -45,8 +45,8 @@ func NewClient(c *rpc.Client) *Client {
} }
// Version returns the Whisper sub-protocol version. // Version returns the Whisper sub-protocol version.
func (sc *Client) Version(ctx context.Context) (uint, error) { func (sc *Client) Version(ctx context.Context) (string, error) {
var result uint var result string
err := sc.c.CallContext(ctx, &result, "shh_version") err := sc.c.CallContext(ctx, &result, "shh_version")
return result, err return result, err
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment