From f96394511c6b26020c83731d9c69f5bcbfe8ae3b Mon Sep 17 00:00:00 2001 From: Willy Date: Tue, 12 Sep 2023 16:29:00 +0200 Subject: [PATCH] add output directly to list without storing it in var --- lib/providers/wallet_provider.dart | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/providers/wallet_provider.dart b/lib/providers/wallet_provider.dart index d9279da6..6459b884 100644 --- a/lib/providers/wallet_provider.dart +++ b/lib/providers/wallet_provider.dart @@ -882,12 +882,13 @@ class WalletProvider with ChangeNotifier { _opReturn, ScriptPushData(utf8.encode(opReturn) as Uint8List), ]); - final output = Output.fromProgram( - BigInt.zero, - RawProgram(script), - ); - txOutputs.add(output); + txOutputs.add( + Output.fromProgram( + BigInt.zero, + RawProgram(script), + ), + ); } //generate keyMap