Skip to content

Commit eea996e

Browse files
baizhenxuanfjl
authored andcommitted
whisper/shhclient: fix Version return type (#15306)
1 parent 2ab7fe8 commit eea996e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎whisper/shhclient/client.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ func NewClient(c *rpc.Client) *Client {
4545
}
4646

4747
// Version returns the Whisper sub-protocol version.
48-
func (sc *Client) Version(ctx context.Context) (uint, error) {
49-
var result uint
48+
func (sc *Client) Version(ctx context.Context) (string, error) {
49+
var result string
5050
err := sc.c.CallContext(ctx, &result, "shh_version")
5151
return result, err
5252
}

0 commit comments

Comments
 (0)