mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix: remove flatten attribute (#2290)
This commit is contained in:
@ -92,6 +92,7 @@ impl Genesis {
|
||||
|
||||
/// An account in the state of the genesis block.
|
||||
#[derive(Clone, Debug, Default, PartialEq, Eq, Serialize, Deserialize)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct GenesisAccount {
|
||||
/// The nonce of the account at genesis.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
@ -102,7 +103,7 @@ pub struct GenesisAccount {
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub code: Option<Bytes>,
|
||||
/// The account's storage at genesis.
|
||||
#[serde(flatten, skip_serializing_if = "Option::is_none")]
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub storage: Option<HashMap<H256, H256>>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user