Fix linting issues
This commit is contained in:
parent
b9fecebd80
commit
f8e20921a3
@ -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
|
||||
|
||||
@ -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}`);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user