We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
rpc
Currently we do
alloy/crates/serde/src/storage.rs
Line 76 in d809bd7
this will succeed for larger 0x00...00 values because the parse impl of U256 strips leading zeros
we need a check that rejects values longer than 64 + 0x
example
>> {"jsonrpc":"2.0","id":1,"method":"eth_getStorageAt","params":["0xaa00000000000000000000000000000000000000","0x00000000000000000000000000000000000000000000000000000000000000000","latest"]} << {"jsonrpc":"2.0","id":1,"result":"0x0000000000000000000000000000000000000000000000000000000000000000"} response differs from expected (-- client, ++ test): { "id": 1, "jsonrpc": "2.0", - "result": "0x0000000000000000000000000000000000000000000000000000000000000000" + "error": { + "code": -32000, + "message": "unable to decode storage key: hex string too long, want at most 32 bytes" + } }
No response
The text was updated successfully, but these errors were encountered:
✋
Sorry, something went wrong.
assigned, ty
programskillforverification
Successfully merging a pull request may close this issue.
Component
rpc
Describe the feature you would like
Currently we do
alloy/crates/serde/src/storage.rs
Line 76 in d809bd7
this will succeed for larger 0x00...00 values because the parse impl of U256 strips leading zeros
we need a check that rejects values longer than 64 + 0x
TODO
example
Additional context
No response
The text was updated successfully, but these errors were encountered: