mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 09:23:48 +00:00
whisper/shhclient: Api Version's return type should be string
This commit is contained in:
parent
e9295163aa
commit
c6f3a7dfec
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.
|
||||
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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue