Skip to content

Commit

Permalink
fix starcoin-genesis errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nkysg committed Oct 17, 2024
1 parent 2b43b73 commit 0cbbae0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions chain/src/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2389,6 +2389,5 @@ pub(crate) fn info_2_accumulator(

fn get_epoch_from_statedb(statedb: &ChainStateDB) -> Result<Epoch> {
let account_reader = AccountStateReader::new(statedb);
account_reader
.get_resource::<Epoch>(genesis_address())
account_reader.get_resource::<Epoch>(genesis_address())
}
2 changes: 1 addition & 1 deletion genesis/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ use starcoin_types::transaction::TransactionInfo;
use starcoin_types::{block::Block, transaction::Transaction};
use starcoin_vm_types::account_config::CORE_CODE_ADDRESS;
use starcoin_vm_types::state_store::table::{TableHandle, TableInfo};
use starcoin_vm_types::state_view::StateView;
use starcoin_vm_types::transaction::{
RawUserTransaction, SignedUserTransaction, TransactionPayload,
};
use starcoin_vm_types::vm_status::KeptVMStatus;
use starcoin_vm_types::StateView;
use std::collections::BTreeMap;
use std::fmt::Display;
use std::fs::{create_dir_all, File};
Expand Down
2 changes: 1 addition & 1 deletion vm/types/src/state_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//! This crate defines [`trait StateView`](StateView).

use crate::state_store::state_key::StateKey;
use crate::state_store::StateView;
pub use crate::state_store::StateView;
use crate::{
account_config::{
genesis_address, token_code::TokenCode, AccountResource, BalanceResource, TokenInfo,
Expand Down

0 comments on commit 0cbbae0

Please sign in to comment.