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

fix: maximum value for `max_response_bytes` #297

Closed gregorydemay closed 2 weeks ago

gregorydemay commented 2 weeks ago

Fix a bug introduced by #279, where the constant HTTP_MAX_SIZE was changed from 2 MB to 2 MiB. This is wrong since per the IC specification max_response_bytes must be at most 2_000_000 bytes and HTTPs outcalls using a bigger value for max_response_bytes will be rejected.