Fix linting issues

This commit is contained in:
Simon Warta 2020-02-27 22:55:40 +01:00
parent b9fecebd80
commit f8e20921a3
2 changed files with 1 additions and 8 deletions

View File

@ -195,13 +195,6 @@ function unwrapWasmResponse<T>(response: WasmResponse<T>): T {
return response.result;
}
function parseWasmResponse(response: WasmResponse<string>): 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

View File

@ -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}`);