Skip to content

Commit

Permalink
update WalletPlugin.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
ecioppettini committed Mar 14, 2022
1 parent a9657a7 commit b2efbe1
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions bindings/wallet-cordova/src/android/WalletPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -105,25 +105,6 @@ class WalletPlugin
}
}

@ExperimentalUnsignedTypes
@Throws(JSONException::class)
private fun walletRestore(args: CordovaArgs, callbackContext: CallbackContext) {
val mnemonics = args.getString(0)
cordova.threadPool.execute {
try {
val normalized: String = Normalizer.normalize(mnemonics, Form.NFKD)
val wallet = Wallet.fromMnemonics(normalized, emptyList())

val walletId = nextWalletId.incrementAndGet()
wallets[walletId] = wallet
callbackContext.success(walletId)
} catch (e: Exception) {
callbackContext.error(e.message)
}
}
}


@ExperimentalUnsignedTypes
@Throws(JSONException::class)
private fun symmetricCipherDecrypt(args: CordovaArgs, callbackContext: CallbackContext) {
Expand Down

0 comments on commit b2efbe1

Please sign in to comment.