mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-04 15:22:55 +00:00
whisper/shhclient: fix Version return type (#15306)
This commit is contained in:
parent
2ab7fe8982
commit
eea996e4e1
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue