Skip to content

Commit

Permalink
use generated framework mrb
Browse files Browse the repository at this point in the history
  • Loading branch information
simonjiao committed Dec 24, 2024
1 parent e2f1343 commit b339cc7
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified framework/releases/testnet.mrb
Binary file not shown.
2 changes: 1 addition & 1 deletion vm/starcoin-transactional-test-harness/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1504,7 +1504,7 @@ pub fn print_help(task_name: Option<String>) -> Result<()> {
//TODO(simon): construct PackagePaths properly
pub static G_PRECOMPILED_STARCOIN_FRAMEWORK: Lazy<(FullyCompiledProgram, Vec<PackagePaths>)> =
Lazy::new(|| {
let sources = starcoin_cached_packages::head_release_bundle()
let sources = starcoin_framework::testnet_release_bundle()
.files()
.unwrap();
let package_paths = vec![PackagePaths {
Expand Down
4 changes: 2 additions & 2 deletions vm/stdlib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub const ERROR_DESCRIPTIONS: &[u8] =
// to pull the same trick here in order to include this in the Rust binary.
static G_FRESH_MOVE_LANG_STDLIB: Lazy<Vec<Vec<u8>>> = Lazy::new(|| {
build_stdlib(
starcoin_cached_packages::head_release_bundle()
starcoin_framework::testnet_release_bundle()
.files()
.unwrap()
.as_slice(),
Expand Down Expand Up @@ -162,7 +162,7 @@ pub fn module_to_package(
}

pub fn stdlib_files() -> Vec<String> {
starcoin_cached_packages::head_release_bundle()
starcoin_framework::testnet_release_bundle()
.files()
.unwrap()
.clone()
Expand Down
2 changes: 1 addition & 1 deletion vm/stdlib/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ fn main() {
std::env::set_current_dir(base_path).expect("failed to change directory");

let new_modules = build_stdlib(
starcoin_cached_packages::head_release_bundle()
starcoin_framework::testnet_release_bundle()
.files()
.unwrap()
.as_slice(),
Expand Down
1 change: 1 addition & 0 deletions vm/transaction-builder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ starcoin-logger = { workspace = true }
starcoin-vm-types = { workspace = true }
starcoin-types = { workspace = true }
stdlib = { workspace = true }
starcoin-framework = { workspace = true }
starcoin-cached-packages = { workspace = true }

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion vm/transaction-builder/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ pub fn create_signed_txn_with_association_account(
}

pub fn build_stdlib_package(net: &ChainNetwork, _stdlib_option: StdLibOptions) -> Result<Package> {
let modules = starcoin_cached_packages::head_release_bundle().legacy_copy_code();
let modules = starcoin_framework::testnet_release_bundle().legacy_copy_code();
build_stdlib_package_with_modules(net, modules)
}

Expand Down
2 changes: 1 addition & 1 deletion vm/vm-runtime/tests/test_native_functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::collections::{HashMap, HashSet};

#[test]
pub fn test_native_function_matches() -> Result<()> {
let modules = starcoin_cached_packages::head_release_bundle().compiled_modules();
let modules = starcoin_framework::testnet_release_bundle().compiled_modules();
let runtime_metadata = modules
.iter()
.filter_map(|m| {
Expand Down

0 comments on commit b339cc7

Please sign in to comment.