Skip to content

Commit

Permalink
Wallet not responding when sending UCO to address starting with [1-9] #…
Browse files Browse the repository at this point in the history
  • Loading branch information
redDwarf03 committed Aug 16, 2022
1 parent 089553f commit 0e9ef3e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/ui/views/nft/add_nft_collection_confirm.dart
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,14 @@ class _AddNFTCollectionConfirmState extends State<AddNFTCollectionConfirm> {
transaction.address!, waitConfirmations);

transactionStatus = await sl.get<ApiService>().sendTx(signedTx);

if (transactionStatus.status == 'invalid') {
EventTaxiImpl.singleton().fire(TransactionSendEvent(
transactionType: TransactionSendEventType.token,
response: '',
nbConfirmations: 0));
subscriptionChannel.close();
}
} catch (e) {
EventTaxiImpl.singleton().fire(TransactionSendEvent(
transactionType: TransactionSendEventType.token,
Expand Down
8 changes: 8 additions & 0 deletions lib/ui/views/tokens_fungibles/add_token_confirm.dart
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,14 @@ class _AddTokenConfirmState extends State<AddTokenConfirm> {
transaction.address!, waitConfirmations);

transactionStatus = await sl.get<ApiService>().sendTx(signedTx);

if (transactionStatus.status == 'invalid') {
EventTaxiImpl.singleton().fire(TransactionSendEvent(
transactionType: TransactionSendEventType.token,
response: '',
nbConfirmations: 0));
subscriptionChannel.close();
}
} catch (e) {
EventTaxiImpl.singleton().fire(TransactionSendEvent(
transactionType: TransactionSendEventType.token,
Expand Down
8 changes: 8 additions & 0 deletions lib/ui/views/uco/transfer_confirm_sheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,14 @@ class _TransferConfirmSheetState extends State<TransferConfirmSheet> {
transaction.address!, waitConfirmations);

transactionStatus = await sl.get<ApiService>().sendTx(signedTx);

if (transactionStatus.status == 'invalid') {
EventTaxiImpl.singleton().fire(TransactionSendEvent(
transactionType: TransactionSendEventType.transfer,
response: '',
nbConfirmations: 0));
subscriptionChannel.close();
}
} catch (e) {
EventTaxiImpl.singleton().fire(TransactionSendEvent(
transactionType: TransactionSendEventType.transfer,
Expand Down

0 comments on commit 0e9ef3e

Please sign in to comment.