Skip to content

Commit

Permalink
feat(create snapshot cubit): corrects typo PE-4687
Browse files Browse the repository at this point in the history
  • Loading branch information
matibat committed Sep 27, 2023
1 parent 144aa4e commit abf45c6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/blocs/create_snapshot/create_snapshot_cubit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class CreateSnapshotCubit extends Cubit<CreateSnapshotState> {
bool _sufficientArBalance = false;
bool _isFreeThanksToTurbo = false;

bool get _useTruboUpload =>
bool get _useTurboUpload =>
_uploadMethod == UploadMethod.turbo || _isFreeThanksToTurbo;

bool _wasSnapshotDataComputingCanceled = false;
Expand Down Expand Up @@ -228,7 +228,7 @@ class CreateSnapshotCubit extends Cubit<CreateSnapshotState> {
await prepareTx(isArConnectProfile);
await signTx(isArConnectProfile);

if (_useTruboUpload) {
if (_useTurboUpload) {
snapshotEntity.txId = _preparedDataItem!.id;
} else {
snapshotEntity.txId = _preparedTx!.id;
Expand All @@ -245,7 +245,7 @@ class CreateSnapshotCubit extends Cubit<CreateSnapshotState> {
'Preparing snapshot transaction with ${isArConnectProfile ? 'ArConnect' : 'JSON wallet'}',
);

if (_useTruboUpload) {
if (_useTurboUpload) {
_preparedDataItem = await _arweave.prepareEntityDataItem(
_snapshotEntity!,
wallet,
Expand Down Expand Up @@ -296,7 +296,7 @@ class CreateSnapshotCubit extends Cubit<CreateSnapshotState> {
return;
}

if (_useTruboUpload) {
if (_useTurboUpload) {
await _preparedDataItem!.sign(wallet);
} else {
await _preparedTx!.sign(wallet);
Expand Down Expand Up @@ -544,7 +544,7 @@ class CreateSnapshotCubit extends Cubit<CreateSnapshotState> {
try {
emit(UploadingSnapshot());

if (_useTruboUpload) {
if (_useTurboUpload) {
await _postTurboDataItem(
dataItem: _preparedDataItem!,
);
Expand Down

0 comments on commit abf45c6

Please sign in to comment.