feat: better serialization of BlockTrace
lispc opened this issue · 0 comments
lispc commented
Describe the feature you would like
Word::from(0xff) will be serialized at "0xff".
In storage kv, it is better serialized as "0x000....000ff".
see
/// Definition of all of the data related to an account.
#[serde_as]
#[derive(PartialEq, Eq, Debug, Default, Clone, Serialize)]
pub struct Account {
/// Address
pub address: Address,
/// nonce
pub nonce: Word,
/// Balance
pub balance: Word,
/// EVM Code
pub code: Bytes,
/// Storage
#[serde(serialize_with = "serde_account_storage")]
pub storage: HashMap<Word, Word>,
}
Additional context
No response