Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

Commit 20504b2

Browse files
committed
t-address key error
1 parent 7f59c53 commit 20504b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/src/lightclient.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -927,6 +927,8 @@ impl LightClient {
927927
self.do_import_sk(key, birthday).await
928928
} else if key.starts_with(self.config.hrp_sapling_viewing_key()) {
929929
self.do_import_vk(key, birthday).await
930+
} else if key.starts_with("K") || key.starts_with("L") {
931+
Err(format!("Can't import t-address keys yet!"))
930932
} else {
931933
Err(format!("'{}' was not recognized as either a spending key or a viewing key because it didn't start with either '{}' or '{}'",
932934
key, self.config.hrp_sapling_private_key(), self.config.hrp_sapling_viewing_key()))

0 commit comments

Comments
 (0)