From f8e20921a3d9b7708a40edaed690e525c7e6e27b Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Thu, 27 Feb 2020 22:55:40 +0100 Subject: [PATCH] Fix linting issues --- packages/sdk/src/restclient.ts | 7 ------- packages/sdk/src/signingcosmwasmclient.spec.ts | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/packages/sdk/src/restclient.ts b/packages/sdk/src/restclient.ts index b72b7a94..d04c3ade 100644 --- a/packages/sdk/src/restclient.ts +++ b/packages/sdk/src/restclient.ts @@ -195,13 +195,6 @@ function unwrapWasmResponse(response: WasmResponse): T { return response.result; } -function parseWasmResponse(response: WasmResponse): any { - if (isWasmError(response)) { - throw new Error(response.error); - } - return JSON.parse(response.result); -} - // We want to get message data from 500 errors // https://stackoverflow.com/questions/56577124/how-to-handle-500-error-message-with-axios // this should be chained to catch one error and throw a more informative one diff --git a/packages/sdk/src/signingcosmwasmclient.spec.ts b/packages/sdk/src/signingcosmwasmclient.spec.ts index a8abbfeb..defd9806 100644 --- a/packages/sdk/src/signingcosmwasmclient.spec.ts +++ b/packages/sdk/src/signingcosmwasmclient.spec.ts @@ -143,7 +143,7 @@ describe("SigningCosmWasmClient", () => { ); // execute - const result = await client.execute(contractAddress, {release:{}}, undefined); + const result = await client.execute(contractAddress, { release: {} }, undefined); const [firstLog] = result.logs; expect(firstLog.log).toEqual(`released funds to ${beneficiaryAddress}`);