Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

Commit d292ae4

Browse files
committed
fix: Present sent off-chain payments as negative
1 parent b61681b commit d292ae4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/main.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,11 @@ class _TenTenOneState extends State<TenTenOneApp> {
264264
switch (e.flow) {
265265
case bridge_definitions.Flow.Inbound:
266266
type = PaymentType.receive;
267+
amount = Amount(e.sats);
267268
break;
268269
case bridge_definitions.Flow.Outbound:
269270
type = PaymentType.send;
271+
amount = Amount(-e.sats);
270272
break;
271273
}
272274
PaymentStatus status;

0 commit comments

Comments
 (0)