Skip to content

Commit 78e2c41

Browse files
committed
fix: rename function and argument
1 parent beaee9e commit 78e2c41

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

stackslib/src/clarity_cli.rs

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -992,15 +992,15 @@ pub fn add_serialized_output(result: &mut serde_json::Value, value: Value) {
992992

993993
/// Returns (process-exit-code, Option<json-output>)
994994
pub fn invoke_command(invoked_by: &str, args: &[String]) -> (i32, Option<serde_json::Value>) {
995-
invoke_command_with_analysis_db(invoked_by, args, None)
995+
invoke_command_with_db(invoked_by, args, None)
996996
}
997997

998998
/// Returns (process-exit-code, Option<json-output>)
999999
/// Optionally accepts a shared analysis database for contract dependency resolution
1000-
pub fn invoke_command_with_analysis_db(
1000+
pub fn invoke_command_with_db(
10011001
invoked_by: &str,
10021002
args: &[String],
1003-
shared_analysis_db: Option<&mut AnalysisDatabase>,
1003+
analysis_db: Option<&mut AnalysisDatabase>,
10041004
) -> (i32, Option<serde_json::Value>) {
10051005
if args.is_empty() {
10061006
print_usage(invoked_by);
@@ -1659,9 +1659,7 @@ pub fn invoke_command_with_analysis_db(
16591659
} else {
16601660
None
16611661
};
1662-
let (_, _, analysis_result_and_cost) = if let Some(shared_analysis_db) =
1663-
shared_analysis_db
1664-
{
1662+
let (_, _, analysis_result_and_cost) = if let Some(analysis_db) = analysis_db {
16651663
// Use shared analysis database for contract dependency resolution
16661664
in_block(header_db, marf_kv, |header_db, mut marf| {
16671665
let analysis_result =
@@ -1682,7 +1680,7 @@ pub fn invoke_command_with_analysis_db(
16821680
&contract_content,
16831681
None,
16841682
ASTRules::PrecheckSize,
1685-
shared_analysis_db,
1683+
analysis_db,
16861684
)
16871685
},
16881686
);
@@ -2078,7 +2076,7 @@ mod test {
20782076
analysis_db.begin();
20792077

20802078
eprintln!("launch tokens");
2081-
let invoked = invoke_command_with_analysis_db(
2079+
let invoked = invoke_command_with_db(
20822080
"test",
20832081
&[
20842082
"launch".to_string(),
@@ -2167,7 +2165,7 @@ mod test {
21672165
assert!(result["assets"] == json!(null));
21682166

21692167
eprintln!("launch names with costs and assets");
2170-
let invoked = invoke_command_with_analysis_db(
2168+
let invoked = invoke_command_with_db(
21712169
"test",
21722170
&[
21732171
"launch".to_string(),

0 commit comments

Comments
 (0)