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

refactor: Use strongly typed fields in JSON requests and responses #291

Closed gregorydemay closed 3 weeks ago

gregorydemay commented 3 weeks ago

Ensures that all fields in JSON requests/responses that are serialized/deserialized by the EVM-RPC canister are strongly typed, e.g. use a wrapper around[u8; 32] instead of a String for fields that represent hashes. This ensures that the EVM-RPC canister only uses with syntactically valid data.