Skip to content

ethjs-format reports string as being zero bytes #4

@kumavis

Description

@kumavis

This may be due to the fact that address is in an array in this log filter parameter

[Error: [ethjs-query] while formatting inputs
'[{
"fromBlock":"0x1",
"toBlock":"0x1",
"address":["0x00000000000000000000000000000000aabbccdd"],
"topics":["0x00000000000000000000000000000000000000000000000000DeadBeefCafe01"]
}]' for method 'getLogs'
error: Error: [ethjs-format] hex string '0x00000000000000000000000000000000aabbccdd'
must be an alphanumeric 42 utf8 byte hex (chars: a-fA-F) string, is 0 bytes]

note: modified the formatting for the sake of this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions