Use coins helper for shorter test code

This commit is contained in:
Simon Warta 2020-07-24 12:55:17 +02:00
parent b7d9b59fd1
commit c9283db741

View File

@ -365,12 +365,7 @@ describe("wasm", () => {
const wallet = await Secp256k1Wallet.fromMnemonic(alice.mnemonic);
const client = makeWasmClient(wasmd.endpoint);
const beneficiaryAddress = makeRandomAddress();
const transferAmount: readonly Coin[] = [
{
amount: "707707",
denom: "ucosm",
},
];
const transferAmount = coins(707707, "ucosm");
// reuse an existing contract, or upload if needed
let codeId: number;
@ -435,12 +430,7 @@ describe("wasm", () => {
const wallet = await Secp256k1Wallet.fromMnemonic(alice.mnemonic);
const client = makeWasmClient(wasmd.endpoint);
const beneficiaryAddress = makeRandomAddress();
const transferAmount: readonly Coin[] = [
{
amount: "707707",
denom: "ucosm",
},
];
const transferAmount = coins(707707, "ucosm");
// reuse an existing contract, or upload if needed
let codeId: number;