Skip to content

Commit

Permalink
chore: More updates of AccountFile
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippGackstatter committed Feb 3, 2025
1 parent 807db47 commit c73d894
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/node/src/commands/genesis/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use miden_lib::{account::faucets::create_basic_fungible_faucet, AuthScheme};
use miden_node_store::genesis::GenesisState;
use miden_node_utils::{config::load_config, crypto::get_rpo_random_coin};
use miden_objects::{
account::{Account, AccountData, AccountIdAnchor, AuthSecretKey},
account::{Account, AccountFile, AccountIdAnchor, AuthSecretKey},
asset::TokenSymbol,
crypto::{dsa::rpo_falcon512::SecretKey, utils::Serializable},
Felt, ONE,
Expand Down Expand Up @@ -134,7 +134,7 @@ fn create_accounts(
);
faucet_count += 1;

(AccountData::new(account, Some(account_seed), auth_secret_key), name)
(AccountFile::new(account, Some(account_seed), auth_secret_key), name)
},
};

Expand Down Expand Up @@ -182,7 +182,7 @@ mod tests {

use figment::Jail;
use miden_node_store::genesis::GenesisState;
use miden_objects::{account::AccountData, utils::serde::Deserializable};
use miden_objects::{account::AccountFile, utils::serde::Deserializable};

use crate::DEFAULT_GENESIS_FILE_PATH;

Expand Down Expand Up @@ -220,7 +220,7 @@ mod tests {
assert!(a0_file_path.exists());

// deserialize account and genesis_state
let a0 = AccountData::read(a0_file_path).unwrap();
let a0 = AccountFile::read(a0_file_path).unwrap();

// assert that the account has the corresponding storage mode
assert!(a0.account.is_public());
Expand Down

0 comments on commit c73d894

Please sign in to comment.