Skip to content

Commit

Permalink
Disabling option to add wallet.
Browse files Browse the repository at this point in the history
  • Loading branch information
danilo-silva-funttastic committed Aug 11, 2023
1 parent aea95eb commit 0ba4623
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions test/connectors/kujira/kujira.controllers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ import {
} from '../../../src/connectors/kujira/kujira.types';
import * as KujiraController from '../../../src/connectors/kujira/kujira.controllers';
import { Denom, fin, KUJI, NETWORKS, TESTNET } from 'kujira.js';
import { addWallet } from '../../../src/services/wallet/wallet.controllers';
import { AddWalletRequest } from '../../../src/services/wallet/wallet.requests';
// import { addWallet } from '../../../src/services/wallet/wallet.controllers';
// import { AddWalletRequest } from '../../../src/services/wallet/wallet.requests';
import lodash from 'lodash';
import { getNotNullOrThrowError } from '../../../src/connectors/kujira/kujira.helpers';
import {
Expand Down Expand Up @@ -260,13 +260,13 @@ beforeAll(async () => {
expressApp = express();
expressApp.use(express.json());

const accountNumber: number = getNotNullOrThrowError<number>(
Number(
usePatches && !useInputOutputWrapper
? data.get('KUJIRA_ACCOUNT_NUMBER')
: process.env.TEST_KUJIRA_ACCOUNT_NUMBER
) || config.accountNumber
);
// const accountNumber: number = getNotNullOrThrowError<number>(
// Number(
// usePatches && !useInputOutputWrapper
// ? data.get('KUJIRA_ACCOUNT_NUMBER')
// : process.env.TEST_KUJIRA_ACCOUNT_NUMBER
// ) || config.accountNumber
// );

kujira = await Kujira.getInstance(config.chain, network);

Expand All @@ -285,15 +285,17 @@ beforeAll(async () => {

await kujira.init();

ownerAddress = (
await addWallet({
chain: config.chain,
network: network,
privateKey: mnemonic,
address: undefined,
accountId: accountNumber,
} as AddWalletRequest)
).address;
ownerAddress = data.get('KUJIRA_PUBLIC_KEY');

// ownerAddress = (
// await addWallet({
// chain: config.chain,
// network: network,
// privateKey: mnemonic,
// address: undefined,
// accountId: accountNumber,
// } as AddWalletRequest)
// ).address;

// Order | Type | Side | Market (ID/Name)
// ====== + ====== + ====== + ================
Expand Down

0 comments on commit 0ba4623

Please sign in to comment.