Skip to content

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 (ethereum#16757)

Fixes ethereum#16756
  • Loading branch information
gravityblast authored and firmianavan committed May 30, 2018
1 parent 3e5f83a commit c75e770
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 c75e770

Please sign in to comment.