Skip to content

Commit

Permalink
Updated node.js wrapper
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Mircea <[email protected]>
  • Loading branch information
bobozaur committed Jul 20, 2023
1 parent f778791 commit 76a8bdb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions wrappers/node/src/api/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ export async function createWallet(config: object): Promise<void> {
}
}

export async function migrateWallet(srcWalletHandle: number, destWalletHandle: number): Promise<void> {
export async function migrateWallet(config: object): Promise<void> {
try {
return await ffi.walletMigrate(srcWalletHandle, destWalletHandle);
return await ffi.walletMigrate(JSON.stringify(config));
} catch (err: any) {
throw new VCXInternalError(err);
}
Expand Down
2 changes: 1 addition & 1 deletion wrappers/vcx-napi-rs/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export function unpack(data: Buffer): Promise<string>
export function createPairwiseInfo(): Promise<string>
export function walletImport(config: string): Promise<void>
export function walletExport(path: string, backupKey: string): Promise<void>
export function walletMigrate(srcWalletHandle: number, destWalletHandle: number): Promise<void>
export function walletMigrate(walletConfig: string): Promise<void>
export function getVerkeyFromWallet(did: string): Promise<string>
export function rotateVerkey(did: string): Promise<void>
export function rotateVerkeyStart(did: string): Promise<string>
Expand Down

0 comments on commit 76a8bdb

Please sign in to comment.