Allow unset transferAmount in test code

This commit is contained in:
Simon Warta 2020-02-07 16:39:56 +01:00
parent c354af68d9
commit 2ecf319ab1

View File

@ -108,7 +108,7 @@ async function instantiateContract(
pen: Pen,
codeId: number,
beneficiaryAddress: string,
transferAmount: readonly Coin[],
transferAmount?: readonly Coin[],
): Promise<PostTxsResponse> {
const memo = "Create an escrow instance";
const theMsg: MsgInstantiateContract = {
@ -120,7 +120,7 @@ async function instantiateContract(
verifier: faucetAddress,
beneficiary: beneficiaryAddress,
},
init_funds: transferAmount,
init_funds: transferAmount || [],
},
};
const fee: StdFee = {