From 2ecf319ab1491000f2345dd38f845dd0b0f88a0e Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Fri, 7 Feb 2020 16:39:56 +0100 Subject: [PATCH] Allow unset transferAmount in test code --- packages/sdk/src/restclient.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/sdk/src/restclient.spec.ts b/packages/sdk/src/restclient.spec.ts index 02c6b926..889b5424 100644 --- a/packages/sdk/src/restclient.spec.ts +++ b/packages/sdk/src/restclient.spec.ts @@ -108,7 +108,7 @@ async function instantiateContract( pen: Pen, codeId: number, beneficiaryAddress: string, - transferAmount: readonly Coin[], + transferAmount?: readonly Coin[], ): Promise { 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 = {