Fix struct name
This commit is contained in:
parent
3af2f1e131
commit
f2bb938fa4
@ -62,7 +62,7 @@ impl Into<JsValue> for ApiError {
|
||||
#[derive(Tsify, Serialize, Deserialize)]
|
||||
#[tsify(into_wasm_abi)]
|
||||
#[allow(non_camel_case_types)]
|
||||
pub struct create_user_return {
|
||||
pub struct createUserReturn {
|
||||
pub user: User,
|
||||
pub output_list_vec: Vec<OutputList>,
|
||||
}
|
||||
@ -129,7 +129,7 @@ pub fn create_user(
|
||||
label: Option<String>,
|
||||
birthday: u32,
|
||||
process: String
|
||||
) -> ApiResult<create_user_return> {
|
||||
) -> ApiResult<createUserReturn> {
|
||||
let mut output_list: Vec<OutputList> = Vec::new();
|
||||
//recover
|
||||
let sp_wallet_recover = generate_sp_wallet(label.clone(), birthday, true)?;
|
||||
@ -175,7 +175,7 @@ pub fn create_user(
|
||||
|
||||
let user = User::new(user_keys, password, process)?;
|
||||
|
||||
let generate_user = create_user_return {
|
||||
let generate_user = createUserReturn {
|
||||
user,
|
||||
output_list_vec: output_list,
|
||||
};
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { create_user_return, User } from '../dist/pkg/sdk_client';
|
||||
import { createUserReturn, User } from '../dist/pkg/sdk_client';
|
||||
import IndexedDB from './database'
|
||||
import Processstore from './store/processstore';
|
||||
|
||||
@ -89,7 +89,7 @@ class Services {
|
||||
|
||||
let label = null;
|
||||
let birthday = 50000;
|
||||
const user: create_user_return = this.sdkClient.create_user(password, label, birthday, this.current_process);
|
||||
const user: createUserReturn = this.sdkClient.create_user(password, label, birthday, this.current_process);
|
||||
|
||||
try {
|
||||
const indexedDb = await IndexedDB.getInstance();
|
||||
|
Loading…
x
Reference in New Issue
Block a user