Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Janaka-Steph committed Nov 14, 2022
1 parent dbe5f52 commit c76dcb6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/transaction.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as ecc from 'tiny-secp256k1';
import * as assert from 'assert';
import { address, networks, Transaction } from 'liquidjs-lib';
import { BlindingDataLike, Psbt } from 'liquidjs-lib/src/psbt';
import { walletFromAddresses, WalletInterface } from '../src';
import { Mnemonic, walletFromAddresses, WalletInterface } from '../src';
import { greedyCoinSelector } from '../src/coinselection/greedy';
import { fetchTxHex } from '../src/explorer/esplora';
import { decodePset, psetToUnsignedHex, psetToUnsignedTx } from '../src/utils';
Expand All @@ -18,20 +18,20 @@ import secp256k1 from '@vulpemventures/secp256k1-zkp';
jest.setTimeout(50000);

let senderWallet: WalletInterface;
let sender: Mnemonic;

describe('buildTx', async () => {
let USDT = '';
let args: BuildTxArgs;
let senderAddress = '';
let senderBlindingKey = '';
const sender = await newRandomMnemonic();

beforeAll(async () => {
const zkplib = await secp256k1();
sender = await newRandomMnemonic();
const addrI = await sender.getNextAddress();
senderAddress = addrI.confidentialAddress;
senderBlindingKey = addrI.blindingPrivateKey;

senderWallet = await walletFromAddresses(
ecc,
zkplib,
Expand Down

0 comments on commit c76dcb6

Please sign in to comment.