Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/core/src/decode/json_to_scval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ mod tests {
];

for case in cases {
let json = scval_to_json(&case);
let json = scval_to_json(&case, None);
let parsed = json_to_scval(&json).expect("should parse");

// For strings, scval_to_json might have been passed a Symbol, but json_to_scval will parse it back as String.
Expand Down Expand Up @@ -301,7 +301,7 @@ mod tests {
.unwrap(),
)));

let json = scval_to_json(&map);
let json = scval_to_json(&map, None);
// This should be the fallback array mode
assert!(json.is_array());

Expand Down
2 changes: 2 additions & 0 deletions crates/core/src/decode/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub mod json_to_scval;
pub mod mappings;
/// Envelope-level decoding that emits one diagnostic report per operation.
pub mod multi_op_decoder;
pub mod recursive_decoder;
pub mod report;
pub mod resource_analyzer;
pub mod return_decoder;
Expand All @@ -37,6 +38,7 @@ pub use enum_decoder::EnumDecoder;
pub use function_call_decoder::{DecodedArgument, DecodedFunctionCall, FunctionCallDecoder};
pub use json_to_scval::json_to_scval;
pub use multi_op_decoder::{decode_transaction_with_op_filter, MultiOpDecoder};
pub use recursive_decoder::{RecursiveTypeDecoder, TypeRef};
pub use resource_analyzer::{
MetricDiagnostic, MetricKind, ResourceDiagnostics, ResourceUsageAnalyzer, TransactionResultMeta,
};
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/decode/multi_op_decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ fn compact_json(value: &Value) -> String {
}

fn format_scval(value: &ScVal) -> String {
compact_json(&crate::decode::scval_to_json(value))
compact_json(&crate::decode::scval_to_json(value, None))
}

fn is_soroban_operation(operation: &Operation) -> bool {
Expand Down
Loading