From 638a1d7f950b2e563aa2f8ecb41345c1cb7f6270 Mon Sep 17 00:00:00 2001 From: rymnc <43716372+rymnc@users.noreply.github.com> Date: Tue, 6 Dec 2022 17:25:25 +0530 Subject: [PATCH] chore: update for rln-interep --- waku/v2/protocol/waku_rln_relay/utils.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/waku/v2/protocol/waku_rln_relay/utils.nim b/waku/v2/protocol/waku_rln_relay/utils.nim index 729f23f88..3fe68a9f6 100644 --- a/waku/v2/protocol/waku_rln_relay/utils.nim +++ b/waku/v2/protocol/waku_rln_relay/utils.nim @@ -177,6 +177,7 @@ proc register*(idComm: IDCommitment, ethAccountAddress: Option[Address], ethAcco let tsReceipt = await web3.getMinedTransactionReceipt(txHash) # the receipt topic holds the hash of signature of the raised events + debug "receipt", receipt=tsReceipt let firstTopic = tsReceipt.logs[0].topics[0] # the hash of the signature of MemberRegistered(uint256,uint256) event is equal to the following hex value if firstTopic[0..65] != "0x5a92c2530f207992057b9c3e544108ffce3beda4a63719f316967c49bf6159d2": @@ -184,6 +185,7 @@ proc register*(idComm: IDCommitment, ethAccountAddress: Option[Address], ethAcco # the arguments of the raised event i.e., MemberRegistered are encoded inside the data field # data = pk encoded as 256 bits || index encoded as 256 bits + debug "receipt data", data=tsReceipt.logs let arguments = tsReceipt.logs[0].data debug "tx log data", arguments=arguments let