Skip to content

Commit

Permalink
[cli] Disable verify module when publish package (#2626)
Browse files Browse the repository at this point in the history
  • Loading branch information
jolestar authored Sep 14, 2024
1 parent 06db356 commit 7f268b8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/rooch/src/commands/move_cli/commands/publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ use moveos_types::{
transaction::MoveAction,
};
use moveos_verifier::build::run_verifier;
use moveos_verifier::verifier;
use rooch_key::key_derive::verify_password;
use rooch_key::keystore::account_keystore::AccountKeystore;
use rooch_rpc_api::jsonrpc_types::{
Expand Down Expand Up @@ -101,9 +100,11 @@ impl CommandAction<ExecuteTransactionResponseView> for Publish {
// Initialize bundles vector and sort modules by dependency order
let mut bundles: Vec<Vec<u8>> = vec![];
let sorted_modules = sort_by_dependency_order(modules.iter_modules())?;
let resolver = context.get_client().await?;
//Because the verify modules function will load many modules from the rpc server,
//We need to find a more efficient way to verify the modules.
//let resolver = context.get_client().await?;
// Serialize and collect module binaries into bundles
verifier::verify_modules(&sorted_modules, &resolver)?;
//verifier::verify_modules(&sorted_modules, &resolver)?;
for module in sorted_modules {
let module_address = module.self_id().address().to_owned();
if module_address != pkg_address {
Expand Down

0 comments on commit 7f268b8

Please sign in to comment.