Skip to content

Commit 46447b4

Browse files
committed
Refactor: Simplify error message creation in get_utxos_sum response
1 parent 28856a0 commit 46447b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/utxo_state/src/utxo_state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ impl UTXOState {
125125
match state.get_utxos_sum(utxo_identifiers).await {
126126
Ok(balance) => UTxOStateQueryResponse::UTxOsSum(balance),
127127
Err(e) => UTxOStateQueryResponse::Error(QueryError::internal_error(
128-
format!("Fetching UTxO sum failed: {e}"),
128+
e.to_string(),
129129
)),
130130
}
131131
}

0 commit comments

Comments
 (0)