Explorar el Código

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

baizhenxuan hace 8 años
padre
commit
eea996e4e1
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      whisper/shhclient/client.go

+ 2 - 2
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
 }