pyquarkchain icon indicating copy to clipboard operation
pyquarkchain copied to clipboard

Improve address format in GetLog internal RPC payload

Open ninjaahhh opened this issue 5 years ago • 0 comments

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

ninjaahhh avatar Sep 03 '19 19:09 ninjaahhh