Skip to content

Commit

Permalink
donot build fresh stdlib to avoid call stack overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
simonjiao committed Dec 25, 2024
1 parent 8cc4e36 commit 54ec41d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions genesis/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,11 @@ impl Genesis {
pub fn build_genesis_transaction(net: &ChainNetwork) -> Result<SignedUserTransaction> {
let package = build_stdlib_package(
net,
if net.is_test() || net.is_dag_test() {
StdLibOptions::Fresh
} else {
// todo: currently only support latest stdlib version.
StdLibOptions::Compiled(StdlibVersion::Latest)
},
//if net.is_test() || net.is_dag_test() {
// StdLibOptions::Fresh
//} else {
// todo: currently only support latest stdlib version.
StdLibOptions::Compiled(StdlibVersion::Latest), //},
)?;
Self::build_genesis_transaction_with_package(net, package)
}
Expand Down

0 comments on commit 54ec41d

Please sign in to comment.