updateEncryptedSeed method

Future<void> updateEncryptedSeed(
  1. String? address,
  2. dynamic passOld,
  3. dynamic passNew
)

Implementation

Future<void> updateEncryptedSeed(String? address, passOld, passNew) async {
  final seed = await getDecryptedSeed(address, passOld);
  if (seed != null) {
    encryptSeedAndSave(address, seed['seed'], seed['type'], passNew);
  }
}