Skip to content

Commit

Permalink
FIX: Add 0x prefix to eth_getStorageAt response (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
aakoshh authored Feb 13, 2024
1 parent 5beaab2 commit 7fbfe9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fendermint/eth/api/src/apis/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -745,8 +745,8 @@ where
if let Some(data) = data {
data.to_big_endian(&mut bz);
}
// The client library expects hex encoded string.
Ok(hex::encode(bz))
// The client library expects hex encoded string. The JS client might want a prefix too.
Ok(format!("0x{}", hex::encode(bz)))
};

let height = data.query_height(block_id).await?;
Expand Down

0 comments on commit 7fbfe9a

Please sign in to comment.