From fab3fcc31fcfe83042763627be77899a2d70f41c Mon Sep 17 00:00:00 2001 From: Milan Steiner <69144826+msteiner96@users.noreply.github.com> Date: Mon, 14 Mar 2022 15:21:59 +0100 Subject: [PATCH] Update packages/cosmwasm-stargate/src/cosmwasmclient.ts Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com> --- packages/cosmwasm-stargate/src/cosmwasmclient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cosmwasm-stargate/src/cosmwasmclient.ts b/packages/cosmwasm-stargate/src/cosmwasmclient.ts index 25117fc8..e9edec3b 100644 --- a/packages/cosmwasm-stargate/src/cosmwasmclient.ts +++ b/packages/cosmwasm-stargate/src/cosmwasmclient.ts @@ -325,7 +325,7 @@ export class CosmWasmClient { throw new Error(_e); } - return (allCodes || []).map((entry: CodeInfoResponse): Code => { + return allCodes.map((entry: CodeInfoResponse): Code => { assert(entry.creator && entry.codeId && entry.dataHash, "entry incomplete"); return { id: entry.codeId.toNumber(),