Skip to content

Commit

Permalink
add debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
nkysg committed Dec 9, 2024
1 parent fd266ee commit b6e3d97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test-helper/src/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use anyhow::{bail, Result};
use starcoin_account_api::AccountPrivateKey;
use starcoin_config::ChainNetwork;
use starcoin_executor::{execute_readonly_function, execute_transactions};
use starcoin_logger::prelude::info;
use starcoin_state_api::{ChainStateReader, StateReaderExt};
use starcoin_statedb::{ChainStateDB, ChainStateWriter};
use starcoin_transaction_builder::DEFAULT_MAX_GAS_AMOUNT;
Expand Down Expand Up @@ -109,6 +110,7 @@ pub fn get_balance<S: ChainStateReader>(address: AccountAddress, chain_state: &S
}

pub fn compile_modules_with_address(address: AccountAddress, code: &str) -> Vec<Module> {
info!("YSG compile_modules_with_address: {:?}", stdlib_files());
let (_, compiled_result) =
starcoin_move_compiler::compile_source_string(code, &stdlib_files(), address)
.expect("compile fail");
Expand Down

0 comments on commit b6e3d97

Please sign in to comment.