mirror of
https://github.com/waku-org/nwaku.git
synced 2025-02-24 12:58:35 +00:00
bumping web3 (#2066)
This commit is contained in:
parent
0d9e9fbdd2
commit
292de5a6c1
2
vendor/nim-web3
vendored
2
vendor/nim-web3
vendored
@ -1 +1 @@
|
||||
Subproject commit bf6c24dba5c808ac570b8602d3b2f748da6a1aae
|
||||
Subproject commit 70f22351c44b849a321b78b94dc0f9cd4ac9a5e1
|
@ -162,7 +162,9 @@ method register*(g: OnchainGroupManager, identityCredentials: IdentityCredential
|
||||
# TODO: make this robust. search within the event list for the event
|
||||
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":
|
||||
if firstTopic != cast[FixedBytes[32]](hexToByteArray[32](
|
||||
"0x5a92c2530f207992057b9c3e544108ffce3beda4a63719f316967c49bf6159d2"
|
||||
)):
|
||||
raise newException(ValueError, "unexpected event signature")
|
||||
|
||||
# the arguments of the raised event i.e., MemberRegistered are encoded inside the data field
|
||||
@ -170,7 +172,7 @@ method register*(g: OnchainGroupManager, identityCredentials: IdentityCredential
|
||||
let arguments = tsReceipt.logs[0].data
|
||||
debug "tx log data", arguments=arguments
|
||||
let
|
||||
argumentsBytes = arguments.hexToSeqByte()
|
||||
argumentsBytes = arguments
|
||||
# In TX log data, uints are encoded in big endian
|
||||
eventIndex = UInt256.fromBytesBE(argumentsBytes[32..^1])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user