Update packages/cosmwasm-stargate/src/cosmwasmclient.ts

Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>
This commit is contained in:
Milan Steiner 2022-03-14 15:21:59 +01:00 committed by GitHub
parent 612efece8f
commit fab3fcc31f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(),