internet-computer-protocol / evm-rpc-canister

Interact with EVM blockchains from the Internet Computer.
https://internetcomputer.org/docs/current/developer-docs/multi-chain/ethereum/evm-rpc/overview
Apache License 2.0
63 stars 13 forks source link

Support `null` topics via empty strings for `eth_getLogs` #218

Open rvanasa opened 4 months ago

rvanasa commented 4 months ago

Requested by @letmejustputthishere.

Because the Candid interface only allows passing string values for topics, the idea is to treat empty strings as equivalent to null in the eth_getLogs spec (since empty strings are otherwise invalid input).