From 104b4ea3c273492027e8eafa52d37b50a3334b6d Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Thu, 12 Jan 2023 17:04:25 +0100 Subject: [PATCH] fix: remove blank strings --- .../sdk-ts/src/core/modules/tx/eip712/maps.ts | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/packages/sdk-ts/src/core/modules/tx/eip712/maps.ts b/packages/sdk-ts/src/core/modules/tx/eip712/maps.ts index e2644277c..7b17c12fa 100644 --- a/packages/sdk-ts/src/core/modules/tx/eip712/maps.ts +++ b/packages/sdk-ts/src/core/modules/tx/eip712/maps.ts @@ -188,31 +188,11 @@ export const mapValuesToProperValueType = >( const sdkDecKeyWithTypeMaps = { 'exchange/MsgIncreasePositionMargin': ['amount'], } - const nullableStringsMaps = { - 'wasmx/MsgExecuteContractCompat': ['funds'], - } return Object.keys(object).reduce((result, key) => { const value = object[key] if (!value) { - // Allow nullable strings in some cases - if (typeof value === 'string') { - const typeInMap = Object.keys(nullableStringsMaps).find( - (key) => key === messageTypeUrl, - ) - - const nullableStringKeys = - nullableStringsMaps[typeInMap as keyof typeof nullableStringsMaps] - - if (nullableStringKeys.includes(key)) { - return { - ...result, - [key]: value, - } - } - } - return result }