Adopt bottom-sheet send flow for ledger (#2140)

* feat: new bottom-sheet send flow for ledger

* refactor: use correct context in ledger bottom-sheet
This commit is contained in:
Konstantin Ullrich
2025-04-02 18:18:24 +02:00
committed by GitHub
parent 7d34494800
commit 65e771cbbe
2 changed files with 24 additions and 17 deletions
+4 -3
View File
@@ -393,9 +393,10 @@ abstract class SendViewModelBase extends WalletChangeListenerViewModel with Stor
@action
Future<PendingTransaction?> createTransaction({ExchangeProvider? provider}) async {
try {
state = IsExecutingState();
if (wallet.isHardwareWallet) state = IsAwaitingDeviceResponseState();
if (wallet.isHardwareWallet)
state = IsAwaitingDeviceResponseState();
else
state = IsExecutingState();
pendingTransaction = await wallet.createTransaction(_credentials(provider));