Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

Commit

Permalink
whisper/shhclient: update call to shh_post to expect string instead o…
Browse files Browse the repository at this point in the history
…f bool (#16757)

Fixes #16756
  • Loading branch information
gravityblast authored and acud committed Jun 4, 2018
1 parent b0f0f35 commit 95d3fcf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions whisper/shhclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ func (sc *Client) DeleteSymmetricKey(ctx context.Context, id string) error {
}

// Post a message onto the network.
func (sc *Client) Post(ctx context.Context, message whisper.NewMessage) error {
var ignored bool
return sc.c.CallContext(ctx, &ignored, "shh_post", message)
func (sc *Client) Post(ctx context.Context, message whisper.NewMessage) (string, error) {
var hash string
return hash, sc.c.CallContext(ctx, &hash, "shh_post", message)
}

// SubscribeMessages subscribes to messages that match the given criteria. This method
Expand Down

0 comments on commit 95d3fcf

Please sign in to comment.