pyquarkchain
pyquarkchain copied to clipboard
Improve address format in GetLog internal RPC payload
class GetLogRequest(Serializable):
FIELDS = [
("branch", Branch),
("addresses", PrependedSizeListSerializer(4, Address)),
(
"topics",
PrependedSizeListSerializer(
4, PrependedSizeListSerializer(4, FixedSizeBytesSerializer(32))
),
),
("start_block", uint64),
("end_block", uint64),
]
where addresses
can use recipient instead of recipient+full shard key (since it's already passed as branch).
brought up by @mask-pp where want to reuse existing go code