Skip to content

Commit

Permalink
Update arweave_service.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagocarvalhodev committed Nov 18, 2024
1 parent b43a78a commit 9c5af0f
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions lib/services/arweave/arweave_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -597,16 +597,18 @@ class ArweaveService {
driveTx.getTag(EntityTag.driveId)!,
);

driveKey ??= await _crypto.deriveDriveKey(
wallet,
driveTx.getTag(EntityTag.driveId)!,
password,
);
if (driveKey == null) {
driveKey = await _crypto.deriveDriveKey(
wallet,
driveTx.getTag(EntityTag.driveId)!,
password,
);

_driveDao.putDriveKeyInMemory(
driveID: driveTx.getTag(EntityTag.driveId)!,
driveKey: driveKey,
);
_driveDao.putDriveKeyInMemory(
driveID: driveTx.getTag(EntityTag.driveId)!,
driveKey: driveKey,
);
}
}
try {
final drive = await DriveEntity.fromTransaction(
Expand Down

0 comments on commit 9c5af0f

Please sign in to comment.