File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 45
45
return unwrapped
46
46
}
47
47
48
- func createHDWallet (withName name : String ,
48
+ func createHDWallet (withName name : String ? ,
49
49
password : String ,
50
50
completion : @escaping (KeyWalletModel? , Error ? ) -> Void )
51
51
{
75
75
}
76
76
let walletModel = KeyWalletModel (address : address,
77
77
data : keyData,
78
- name : name,
78
+ name : name ?? " " ,
79
79
isHD : true )
80
80
completion (walletModel, nil )
81
81
}
125
125
126
126
#### Import Account With Mnemonics Phrase
127
127
``` swift
128
- func addHDWallet (withName name : String ,
128
+ func addHDWallet (withName name : String ? ,
129
129
password : String ,
130
130
mnemonics : String ,
131
131
completion : @escaping (KeyWalletModel? , Error ? ) -> Void )
150
150
}
151
151
let walletModel = KeyWalletModel (address : address,
152
152
data : keyData,
153
- name : name,
153
+ name : name ?? " " ,
154
154
isHD : true )
155
155
completion (walletModel, nil )
156
156
}
You can’t perform that action at this time.
0 commit comments