OSDN Git Service
(root)
/
bytom
/
Bytom-JS-SDK.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
78bc5c2
)
update selection
author
Zhiting Lin
<zlin035@uottawa.ca>
Wed, 26 Aug 2020 06:07:51 +0000
(14:07 +0800)
committer
Zhiting Lin
<zlin035@uottawa.ca>
Wed, 26 Aug 2020 06:07:51 +0000
(14:07 +0800)
src/sdk/keys.js
patch
|
blob
|
history
diff --git
a/src/sdk/keys.js
b/src/sdk/keys.js
index
4732180
..
ed71fa2
100644
(file)
--- a/
src/sdk/keys.js
+++ b/
src/sdk/keys.js
@@
-221,7
+221,7
@@
keysSDK.prototype.isValidKeystore = function( keystore ) {
}
// match older version of backups keystore files
- else if(walletImage
.keys>0
){
+ else if(walletImage
['accounts-server']
){
keys = walletImage.keys.map(keyItem => JSON.parse( keyItem.key ) );
}else{
key = walletImage;