From 5bcdf286f6e8c331dd7b108e0442317693ac4149 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Fri, 7 Feb 2020 17:32:14 +0100 Subject: [PATCH] Fix optional types in MsgStoreCode If they are unset, signatures are invalid. --- packages/sdk/src/types.ts | 8 ++++---- packages/sdk/types/types.d.ts | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/sdk/src/types.ts b/packages/sdk/src/types.ts index 56da7b1a..5dfd60aa 100644 --- a/packages/sdk/src/types.ts +++ b/packages/sdk/src/types.ts @@ -51,10 +51,10 @@ export interface MsgStoreCode extends MsgTemplate { readonly sender: string; /** Base64 encoded Wasm */ readonly wasm_byte_code: string; - /** A valid URI reference to the contract's source code, optional */ - readonly source?: string; - /** A docker tag, optional */ - readonly builder?: string; + /** A valid URI reference to the contract's source code. Can be empty. */ + readonly source: string; + /** A docker tag. Can be empty. */ + readonly builder: string; }; } diff --git a/packages/sdk/types/types.d.ts b/packages/sdk/types/types.d.ts index 2d26a1b3..c2d760a3 100644 --- a/packages/sdk/types/types.d.ts +++ b/packages/sdk/types/types.d.ts @@ -39,10 +39,10 @@ export interface MsgStoreCode extends MsgTemplate { readonly sender: string; /** Base64 encoded Wasm */ readonly wasm_byte_code: string; - /** A valid URI reference to the contract's source code, optional */ - readonly source?: string; - /** A docker tag, optional */ - readonly builder?: string; + /** A valid URI reference to the contract's source code. Can be empty. */ + readonly source: string; + /** A docker tag. Can be empty. */ + readonly builder: string; }; } /**