From dc0b1876224134b05d5717a465253dfc58909b21 Mon Sep 17 00:00:00 2001 From: Kirill Bubochkin Date: Sun, 16 Jun 2024 18:00:21 +0200 Subject: [PATCH] refactor: update outgoing escrow signing (#1500) --- .../features/escrow_payments/create_outgoing_escrow.dart | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/espressocash_app/lib/features/escrow_payments/create_outgoing_escrow.dart b/packages/espressocash_app/lib/features/escrow_payments/create_outgoing_escrow.dart index 23ce39cef3..9871df47eb 100644 --- a/packages/espressocash_app/lib/features/escrow_payments/create_outgoing_escrow.dart +++ b/packages/espressocash_app/lib/features/escrow_payments/create_outgoing_escrow.dart @@ -123,11 +123,7 @@ class CreateOutgoingEscrow { platform: platformAccount, ), ) - .then((tx) => (tx: tx, escrow: escrowAccount)) - .then((value) async { - final tx = await value.tx.resign(LocalWallet(escrowAccount)); - - return (tx: tx, escrow: value.escrow); - }); + .then((value) => value.resign(LocalWallet(escrowAccount))) + .then((tx) => (tx: tx, escrow: escrowAccount)); } }