Skip to content

Commit

Permalink
add path
Browse files Browse the repository at this point in the history
  • Loading branch information
nkysg committed Dec 9, 2024
1 parent fb91479 commit 4e76c52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions contrib-contracts/src/merkle_distributor_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ fn test_merkle_distributor() -> Result<()> {
starcoin_move_stdlib::STARCOIN_STDLIB_SOURCE_FILES.clone();
source_files.extend(starcoin_stdlib_files);

println!("YSG source_files: {:?}", source_files);

let modules = compile_modules_with_address_internal(association_address(), source, &source_files);

let package = Package::new(modules, None)?;
Expand Down
4 changes: 3 additions & 1 deletion vm/framework/move-stdlib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pub static MOVE_STDLIB_SOURCE_FILES: Lazy<Vec<String>> = Lazy::new(|| {
let tempdir = tempfile::tempdir().expect("local dir should be created");
let sources_dir = tempdir.path().join("move-stdlib").join("sources");
std::fs::create_dir_all(sources_dir.as_path()).expect("create dir should success");
println!("restore move-stdlib sources in: {:?}", sources_dir);
MOVE_STDLIB_SOURCES_DIR
.extract(sources_dir.as_path())
.expect("extract should success");
Expand All @@ -38,8 +39,9 @@ pub const STARCOIN_STDLIB_SOURCES_DIR: Dir = include_dir!("../starcoin-stdlib/so

pub static STARCOIN_STDLIB_SOURCE_FILES: Lazy<Vec<String>> = Lazy::new(|| {
let tempdir = tempfile::tempdir().expect("local dir should be created");
let sources_dir = tempdir.path().join("move-stdlib").join("sources");
let sources_dir = tempdir.path().join("starcoin-stdlib").join("sources");
std::fs::create_dir_all(sources_dir.as_path()).expect("create dir should success");
println!("restore starcoin-stdlib sources in: {:?}", sources_dir);
STARCOIN_STDLIB_SOURCES_DIR
.extract(sources_dir.as_path())
.expect("extract should success");
Expand Down

0 comments on commit 4e76c52

Please sign in to comment.