Skip to content

Commit

Permalink
[compiler-v2 framework] fixed test_chain_id
Browse files Browse the repository at this point in the history
  • Loading branch information
welbon committed Nov 28, 2024
1 parent ad6c34e commit 1d56480
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion vm/framework/starcoin-stdlib/sources/type_info.move
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ module starcoin_std::type_info {
features::change_feature_flags_for_testing(&fx, vector[features::get_starcoin_stdlib_chain_id_feature()], vector[]);

// The testing environment chain ID is 4u8.
assert!(chain_id() == 4u8, 1);
debug::print(&string::utf8(b"chain_id is: "));
debug::print(&chain_id());

assert!(chain_id() == 255u8, 1);
}

#[test]
Expand Down Expand Up @@ -179,6 +182,8 @@ module starcoin_std::type_info {

#[test_only]
use std::option;
#[test_only]
use starcoin_std::debug;

#[test(account = @0x0)]
/// Ensure valid returns across native types and nesting schemas.
Expand Down

0 comments on commit 1d56480

Please sign in to comment.