import { BECH32_PREFIX } from '../src';
import LocalWallet from '../src/clients/modules/local-wallet';
import { TEST_ADDRESS, TEST_MNEMONIC } from './constants';

async function test(): Promise<void> {
  const wallet = await LocalWallet.fromMnemonic(TEST_MNEMONIC, BECH32_PREFIX);
  console.log(wallet);
  const address = wallet.address;
  const addressOk = address === TEST_ADDRESS;
  console.log(addressOk);
  console.log(address);
}

test()
  .then(() => {})
  .catch((error) => {
    console.log(error.message);
  });
