Skip to content

Commit

Permalink
style: 🚨 fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideSegullo committed Jun 14, 2023
1 parent 9c1a871 commit e37b614
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
26 changes: 13 additions & 13 deletions packages/stargate/src/signingstargateclient.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ describe("SigningStargateClient", () => {
toAddress: makeRandomAddress(),
amount: coins(1234, "ucosm"),
};

const msgAny: MsgSendEncodeObject = {
typeUrl: "/cosmos.bank.v1beta1.MsgSend",
value: msgSend,
Expand All @@ -717,10 +717,10 @@ describe("SigningStargateClient", () => {
};
const memo = "Use your power wisely";
const transactionHash = await client.signAndBroadcastSync(faucet.address0, [msgAny], fee, memo);

expect(transactionHash).toMatch(/^[0-9A-F]{64}$/);

await sleep(simapp.blockTime * 1.5);
await sleep(simapp.blockTime * 1.5);
});

it("works with auto gas", async () => {
Expand All @@ -736,16 +736,16 @@ describe("SigningStargateClient", () => {
toAddress: makeRandomAddress(),
amount: coins(1234, "ucosm"),
};

const msgAny: MsgSendEncodeObject = {
typeUrl: "/cosmos.bank.v1beta1.MsgSend",
value: msgSend,
};
const transactionHash = await client.signAndBroadcastSync(faucet.address0, [msgAny], "auto");

expect(transactionHash).toMatch(/^[0-9A-F]{64}$/);

await sleep(simapp.blockTime * 1.5);
await sleep(simapp.blockTime * 1.5);
});

it("works with a modifying signer", async () => {
Expand All @@ -762,7 +762,7 @@ describe("SigningStargateClient", () => {
toAddress: makeRandomAddress(),
amount: coins(1234, "ucosm"),
};

const msgAny: MsgSendEncodeObject = {
typeUrl: "/cosmos.bank.v1beta1.MsgSend",
value: msgSend,
Expand All @@ -774,10 +774,10 @@ describe("SigningStargateClient", () => {
};
const memo = "Use your power wisely";
const transactionHash = await client.signAndBroadcastSync(faucet.address0, [msgAny], fee, memo);

expect(transactionHash).toMatch(/^[0-9A-F]{64}$/);

await sleep(simapp.blockTime * 1.5);
await sleep(simapp.blockTime * 1.5);
});
});

Expand Down Expand Up @@ -806,10 +806,10 @@ describe("SigningStargateClient", () => {
};
const memo = "ampersand:&,lt:<,gt:>";
const transactionHash = await client.signAndBroadcastSync(faucet.address0, [msgAny], fee, memo);

expect(transactionHash).toMatch(/^[0-9A-F]{64}$/);

await sleep(simapp.blockTime * 1.5);
await sleep(simapp.blockTime * 1.5);
});

it("works with bank MsgSend", async () => {
Expand All @@ -836,10 +836,10 @@ describe("SigningStargateClient", () => {
};
const memo = "Use your tokens wisely";
const transactionHash = await client.signAndBroadcastSync(faucet.address0, [msgAny], fee, memo);

expect(transactionHash).toMatch(/^[0-9A-F]{64}$/);

await sleep(simapp.blockTime * 1.5);
await sleep(simapp.blockTime * 1.5);
});
});
});
Expand Down
4 changes: 2 additions & 2 deletions packages/stargate/src/stargateclient.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -610,10 +610,10 @@ describe("StargateClient", () => {
});
const txRawBytes = Uint8Array.from(TxRaw.encode(txRaw).finish());
const transactionHash = await client.broadcastTxSync(txRawBytes);

expect(transactionHash).toMatch(/^[0-9A-F]{64}$/);

await sleep(simapp.blockTime * 1.5);
await sleep(simapp.blockTime * 1.5);

client.disconnect();
});
Expand Down

0 comments on commit e37b614

Please sign in to comment.