mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-11 14:09:15 +00:00
Free variable name: data
This commit is contained in:
parent
82447e8afe
commit
4136d5e691
@ -7,7 +7,7 @@ import { encodeSecp256k1Signature, makeSignBytes, marshalTx } from "./encoding";
|
|||||||
import { Log, parseLogs } from "./logs";
|
import { Log, parseLogs } from "./logs";
|
||||||
import { RestClient } from "./restclient";
|
import { RestClient } from "./restclient";
|
||||||
import contract from "./testdata/contract.json";
|
import contract from "./testdata/contract.json";
|
||||||
import data from "./testdata/cosmoshub.json";
|
import cosmoshub from "./testdata/cosmoshub.json";
|
||||||
import {
|
import {
|
||||||
Coin,
|
Coin,
|
||||||
Msg,
|
Msg,
|
||||||
@ -78,9 +78,9 @@ describe("RestClient", () => {
|
|||||||
describe("encodeTx", () => {
|
describe("encodeTx", () => {
|
||||||
it("works for cosmoshub example", async () => {
|
it("works for cosmoshub example", async () => {
|
||||||
pendingWithoutCosmos();
|
pendingWithoutCosmos();
|
||||||
const tx: StdTx = data.tx.value;
|
const tx: StdTx = cosmoshub.tx.value;
|
||||||
const client = new RestClient(httpUrl);
|
const client = new RestClient(httpUrl);
|
||||||
expect(await client.encodeTx(tx)).toEqual(fromBase64(data.tx_data));
|
expect(await client.encodeTx(tx)).toEqual(fromBase64(cosmoshub.tx_data));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user