Fix assertion error.

This commit is contained in:
Álex Cabeza Romero 2024-03-15 19:28:59 +01:00
parent 985ec5c5a5
commit a750c73144
No known key found for this signature in database
GPG Key ID: 814BBD2BAB634A7B
1 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,8 @@ proc sendRlnMessage(
payload: seq[byte] = "Hello".toBytes(),
): Future[bool] {.async.} =
var message = WakuMessage(payload: payload, contentTopic: contentTopic)
assertResultOk client.wakuRlnRelay.appendRLNProof(message, epochTime())
let appendRlnProofResult = client.wakuRlnRelay.appendRLNProof(message, epochTime())
assertResultOk appendRlnProofResult
discard await client.publish(some(pubsubTopic), message)
let isCompleted = await completionFuture.withTimeout(FUTURE_TIMEOUT)
return isCompleted