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 {
}
// 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
}
......
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