Skip to content

Commit

Permalink
add output directly to list without storing it in var
Browse files Browse the repository at this point in the history
  • Loading branch information
willyfromtheblock committed Sep 12, 2023
1 parent ec6f378 commit f963945
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/providers/wallet_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f963945

Please sign in to comment.