Skip to content

Commit c75e770

Browse files
gravityblastfirmianavan
authored andcommitted
whisper/shhclient: update call to shh_post to expect string instead of bool (ethereum#16757)
Fixes ethereum#16756
1 parent 3e5f83a commit c75e770

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

whisper/shhclient/client.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ func (sc *Client) DeleteSymmetricKey(ctx context.Context, id string) error {
159159
}
160160

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

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

0 commit comments

Comments
 (0)