Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 9 commits into from
Sep 26, 2024

Conversation

gregorydemay
Copy link
Member

@gregorydemay gregorydemay commented Sep 25, 2024

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.

@gregorydemay gregorydemay marked this pull request as ready for review September 25, 2024 13:30
evm_rpc_types/src/lib.rs Show resolved Hide resolved
src/candid_rpc/mod.rs Show resolved Hide resolved
@gregorydemay gregorydemay merged commit 9a94dba into main Sep 26, 2024
3 checks passed
@gregorydemay gregorydemay deleted the gdemay/243-strengthen-json-types branch September 26, 2024 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants