From 8b338ee149c2b2a689152009b195fe9c84caa86e Mon Sep 17 00:00:00 2001 From: Mati Date: Wed, 20 Sep 2023 12:46:04 -0300 Subject: [PATCH] feat(pin file bloc): awaits for the signature of the transaction PE-4645 --- lib/blocs/pin_file/pin_file_bloc.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/blocs/pin_file/pin_file_bloc.dart b/lib/blocs/pin_file/pin_file_bloc.dart index 332636d99e..257fdffb0a 100644 --- a/lib/blocs/pin_file/pin_file_bloc.dart +++ b/lib/blocs/pin_file/pin_file_bloc.dart @@ -333,7 +333,7 @@ class PinFileBloc extends Bloc { ); } - fileDataItem.sign(wallet); + await fileDataItem.sign(wallet); await _turboUploadService.postDataItem( dataItem: fileDataItem, @@ -359,7 +359,7 @@ class PinFileBloc extends Bloc { ); } - fileDataItem.sign(wallet); + await fileDataItem.sign(wallet); await _arweave.postTx(fileDataItem); newFileEntity.txId = fileDataItem.id;