@@ -236,7 +236,10 @@ class SendCubit extends Cubit<SendState> {
236236 emit (
237237 state.copyWith (
238238 loadingBestWallet: false ,
239- invalidBitcoinStringException: InvalidBitcoinStringException (),
239+ invalidBitcoinStringException:
240+ state.scannedRawPaymentRequest.isNotEmpty
241+ ? UnsupportedQrFormatException ()
242+ : InvalidBitcoinStringException (),
240243 ),
241244 );
242245 return ;
@@ -260,7 +263,9 @@ class SendCubit extends Cubit<SendState> {
260263 emit (
261264 state.copyWith (
262265 loadingBestWallet: false ,
263- swapCreationException: AmountlessInvoiceException ('Invoice has no amount' ),
266+ swapCreationException: AmountlessInvoiceException (
267+ 'Invoice has no amount' ,
268+ ),
264269 ),
265270 );
266271 return ;
@@ -911,9 +916,7 @@ class SendCubit extends Cubit<SendState> {
911916
912917 if (state.blocksSwapDueToBitcoinHardwareWallet) {
913918 emit (
914- state.copyWith (
915- swapCreationException: HardwareWalletSwapException (),
916- ),
919+ state.copyWith (swapCreationException: HardwareWalletSwapException ()),
917920 );
918921 return ;
919922 }
@@ -1778,10 +1781,7 @@ class SendCubit extends Cubit<SendState> {
17781781 /// `manual: true` locks the pick so [updateBestWallet] 's auto-switching
17791782 /// (used as the user types an amount) doesn't override the user's choice —
17801783 /// the silent override regressed cold-wallet sends. See #1918.
1781- Future <void > _setSelectedWallet (
1782- Wallet wallet, {
1783- required bool manual,
1784- }) async {
1784+ Future <void > _setSelectedWallet (Wallet wallet, {required bool manual}) async {
17851785 emit (
17861786 state.copyWith (
17871787 selectedWallet: wallet,
0 commit comments