@oko-wallet/oko-sdk-cosmos
Version:
17 lines • 602 B
JavaScript
import { OkoWallet } from "@oko-wallet/oko-sdk-core";
import { OkoCosmosWallet } from "../constructor";
export function init(args) {
const walletRes = OkoWallet.init(args);
if (!walletRes.success) {
console.error("[oko-cosmos] cosmos wallet core init fail, err: %s", walletRes.err);
return {
success: false,
err: {
type: "oko_cosmos_wallet_init_fail",
msg: walletRes.err.toString(),
},
};
}
return { success: true, data: new OkoCosmosWallet(walletRes.data) };
}
//# sourceMappingURL=init.js.map