Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Leading zeros on Quantity values are not trimmed. #1279

Closed
gakonst opened this issue May 17, 2022 · 1 comment · Fixed by #1281
Closed

Leading zeros on Quantity values are not trimmed. #1279

gakonst opened this issue May 17, 2022 · 1 comment · Fixed by #1281
Labels
bug Something isn't working

Comments

@gakonst
Copy link
Owner

gakonst commented May 17, 2022

Problem

See the Foundry issue for motivation & proposed solution: foundry-rs/foundry#1590

@gakonst gakonst added the bug Something isn't working label May 17, 2022
@mattsse
Copy link
Collaborator

mattsse commented May 18, 2022

this happens in

location: H256,

due to the H256 which formats padded

let value: String = self.request("eth_getStorageAt", [from, location, block]).await?;

but the location in eth_storage_at is a Quantity number according to the spec, I guess we can simply convert it to a U256 first?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants