What changed, and why it matters
This commit only reformats code in a single Dart file. It splits one exception message across multiple lines and collapses a multi-line fee calculation into a single line. There are no functional changes, no bug fixes, and no security-related modifications.
No security action needed. Treat as a normal code-style/formatting commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff is purely cosmetic formatting in lib/wallets/wallet/wallet_mixin_interfaces/spark_interface.dart. One change wraps an Exception string argument across three lines; the other joins a previously three-line subtraction expression into one line. Operator precedence, variable names, and logic remain identical.
Changed components
lib/wallets/wallet/wallet_mixin_interfaces/spark_interface.dartInspect captured patch +4 / −4
diff --git a/lib/wallets/wallet/wallet_mixin_interfaces/spark_interface.dart b/lib/wallets/wallet/wallet_mixin_interfaces/spark_interface.dart
index 71e7acf..fcf753f 100644
--- a/lib/wallets/wallet/wallet_mixin_interfaces/spark_interface.dart
+++ b/lib/wallets/wallet/wallet_mixin_interfaces/spark_interface.dart
@@ -1721,7 +1721,9 @@ mixin SparkInterface<T extends ElectrumXCurrencyInterface>
if (singleTxOutputs.isEmpty) {
if (autoMintAll) {
- throw Exception("UTXO value is too small to cover Spark mint fee");
+ throw Exception(
+ "UTXO value is too small to cover Spark mint fee",
+ );
}
valueAndUTXOs.remove(itr);
skipCoin = true;
@@ -2096,9 +2098,7 @@ mixin SparkInterface<T extends ElectrumXCurrencyInterface>
vin
.map((e) => BigInt.from(e.utxo.value))
.fold(BigInt.zero, (p, e) => p + e) -
- vout
- .map((e) => BigInt.from(e.$2))
- .fold(BigInt.zero, (p, e) => p + e);
+ vout.map((e) => BigInt.from(e.$2)).fold(BigInt.zero, (p, e) => p + e);
if (actualFee != nFeeRet) {
Logging.instance.e(
"Spark mint fee accounting mismatch: "
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.