Streamline test tx types

This commit is contained in:
Simon Warta
2020-06-19 13:58:57 +02:00
parent b88646392c
commit ffecf9adff
2 changed files with 41 additions and 51 deletions
@@ -17,25 +17,17 @@ import {
} from "./testutils.spec";
import { CosmosSdkTx, isMsgSend, MsgSend } from "./types";
interface TestTxSend {
readonly sender: string;
readonly recipient: string;
readonly hash: string;
readonly height: number;
readonly tx: CosmosSdkTx;
}
describe("CosmosClient.searchTx", () => {
let sendSuccessful:
| {
readonly sender: string;
readonly recipient: string;
readonly hash: string;
readonly height: number;
readonly tx: CosmosSdkTx;
}
| undefined;
let sendUnsuccessful:
| {
readonly sender: string;
readonly recipient: string;
readonly hash: string;
readonly height: number;
readonly tx: CosmosSdkTx;
}
| undefined;
let sendSuccessful: TestTxSend | undefined;
let sendUnsuccessful: TestTxSend | undefined;
beforeAll(async () => {
if (wasmdEnabled()) {