mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-07 16:33:08 +00:00
bumping web3 (#2066)
This commit is contained in:
parent
19af92455a
commit
01fd3e0082
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
|
# TODO: make this robust. search within the event list for the event
|
||||||
let firstTopic = tsReceipt.logs[0].topics[0]
|
let firstTopic = tsReceipt.logs[0].topics[0]
|
||||||
# the hash of the signature of MemberRegistered(uint256,uint256) event is equal to the following hex value
|
# 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")
|
raise newException(ValueError, "unexpected event signature")
|
||||||
|
|
||||||
# the arguments of the raised event i.e., MemberRegistered are encoded inside the data field
|
# 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
|
let arguments = tsReceipt.logs[0].data
|
||||||
debug "tx log data", arguments=arguments
|
debug "tx log data", arguments=arguments
|
||||||
let
|
let
|
||||||
argumentsBytes = arguments.hexToSeqByte()
|
argumentsBytes = arguments
|
||||||
# In TX log data, uints are encoded in big endian
|
# In TX log data, uints are encoded in big endian
|
||||||
eventIndex = UInt256.fromBytesBE(argumentsBytes[32..^1])
|
eventIndex = UInt256.fromBytesBE(argumentsBytes[32..^1])
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user