Fix lint issues

This commit is contained in:
Ethan Frey 2020-02-03 21:33:39 +01:00
parent 0031d6860d
commit c62702ba30

View File

@ -141,7 +141,7 @@ export class RestClient {
// encodeTx returns the amino-encoding of the transaction
public async encodeTx(stdTx: StdTx): Promise<Uint8Array> {
const tx = {"type": "cosmos-sdk/StdTx", "value": stdTx};
const tx = { type: "cosmos-sdk/StdTx", value: stdTx };
const responseData = await this.post("/txs/encode", tx);
if (!(responseData as any).tx) {
throw new Error("Unexpected response data format");