update js
This commit is contained in:
parent
3e92c2f31e
commit
c4dc245230
File diff suppressed because one or more lines are too long
@ -5,8 +5,9 @@ console.log(">>begin load wallet main file");
|
||||
* @param {string} type: wallet type, 0: internal wallet, 1: third party wallet
|
||||
|
||||
*/
|
||||
function initWallet(funId, type, chain) {
|
||||
function initWallet(funId, type, chain, channel) {
|
||||
// chain = chain || 80001
|
||||
channel = channel || 1
|
||||
type = 0
|
||||
chain = 80001
|
||||
try {
|
||||
@ -34,7 +35,7 @@ function initWallet(funId, type, chain) {
|
||||
jsb.jcCallback(funId,JSON.stringify({errcode: 1,errmsg: err}));
|
||||
});
|
||||
} else {
|
||||
wallet.initInternalWallet()
|
||||
wallet.initInternalWallet(channel)
|
||||
.then(() => {
|
||||
console.log("internal init success");
|
||||
var address = jc.wallet.nativeAccount;
|
||||
|
Loading…
x
Reference in New Issue
Block a user