Skip to content

Commit

Permalink
Single import, lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoralf-M committed Aug 30, 2023
1 parent 3374a32 commit 1c0ec7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async function run() {

migrateDbChrysalisToStardust(walletDbPath, 'password');

let walletOptions: WalletOptions = {
const walletOptions: WalletOptions = {
storagePath: walletDbPath,
clientOptions: {
nodes: [process.env.NODE_URL],
Expand All @@ -40,13 +40,13 @@ async function run() {
},
};
console.log(walletOptions);
let wallet = new Wallet(walletOptions);
const wallet = new Wallet(walletOptions);

// Accounts migrated from the Chrysalis db
let accounts = await wallet.getAccounts();
const accounts = await wallet.getAccounts();
console.log(accounts);

let historicChrysalisData = await wallet.getChrysalisData();
const historicChrysalisData = await wallet.getChrysalisData();
console.log(historicChrysalisData);
}

Expand Down
3 changes: 1 addition & 2 deletions bindings/nodejs/lib/wallet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ export * from './account';
export * from './wallet';
export * from './wallet-method-handler';
export * from '../types/wallet';
import { migrateDbChrysalisToStardust } from '../bindings';
export { migrateDbChrysalisToStardust };
export { migrateDbChrysalisToStardust } from '../bindings';

0 comments on commit 1c0ec7f

Please sign in to comment.