bumping web3 (#2066)

This commit is contained in:
Ivan Folgueira Bande 2023-09-25 08:13:40 +02:00 committed by GitHub
parent 0d9e9fbdd2
commit 292de5a6c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

2
vendor/nim-web3 vendored

@ -1 +1 @@
Subproject commit bf6c24dba5c808ac570b8602d3b2f748da6a1aae
Subproject commit 70f22351c44b849a321b78b94dc0f9cd4ac9a5e1

View File

@ -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])