mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
Print some Amino sign docs
This commit is contained in:
parent
287278004b
commit
ae7734e450
@ -98,5 +98,7 @@ export function escapeCharacters(input: string): string {
|
|||||||
|
|
||||||
export function serializeSignDoc(signDoc: StdSignDoc): Uint8Array {
|
export function serializeSignDoc(signDoc: StdSignDoc): Uint8Array {
|
||||||
const serialized = escapeCharacters(sortedJsonStringify(signDoc));
|
const serialized = escapeCharacters(sortedJsonStringify(signDoc));
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
|
console.log("Sign doc serialized:", serialized);
|
||||||
return toUtf8(serialized);
|
return toUtf8(serialized);
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,6 @@ import {
|
|||||||
nonNegativeIntegerMatcher,
|
nonNegativeIntegerMatcher,
|
||||||
pendingWithoutSimapp,
|
pendingWithoutSimapp,
|
||||||
simapp,
|
simapp,
|
||||||
simapp50Enabled,
|
|
||||||
simappEnabled,
|
simappEnabled,
|
||||||
validator,
|
validator,
|
||||||
} from "../../testutils.spec";
|
} from "../../testutils.spec";
|
||||||
@ -206,9 +205,9 @@ describe("gov messages", () => {
|
|||||||
client.disconnect();
|
client.disconnect();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("works with Amino JSON sign mode", async () => {
|
fit("works with Amino JSON sign mode", async () => {
|
||||||
pendingWithoutSimapp();
|
pendingWithoutSimapp();
|
||||||
if (simapp50Enabled()) pending("Not working, see https://github.com/cosmos/cosmos-sdk/issues/18546");
|
// if (simapp50Enabled()) pending("Not working, see https://github.com/cosmos/cosmos-sdk/issues/18546");
|
||||||
assert(voterWalletAmino);
|
assert(voterWalletAmino);
|
||||||
assert(proposalId, "Missing proposal ID");
|
assert(proposalId, "Missing proposal ID");
|
||||||
const client = await SigningStargateClient.connectWithSigner(
|
const client = await SigningStargateClient.connectWithSigner(
|
||||||
|
@ -12,7 +12,6 @@ import {
|
|||||||
faucet,
|
faucet,
|
||||||
pendingWithoutSimapp,
|
pendingWithoutSimapp,
|
||||||
simapp,
|
simapp,
|
||||||
simapp50Enabled,
|
|
||||||
} from "../../testutils.spec";
|
} from "../../testutils.spec";
|
||||||
import { MsgCreateValidatorEncodeObject, MsgEditValidatorEncodeObject } from "./messages";
|
import { MsgCreateValidatorEncodeObject, MsgEditValidatorEncodeObject } from "./messages";
|
||||||
|
|
||||||
@ -94,9 +93,9 @@ describe("staking messages", () => {
|
|||||||
client.disconnect();
|
client.disconnect();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("works with Amino JSON sign mode", async () => {
|
fit("works with Amino JSON sign mode", async () => {
|
||||||
pendingWithoutSimapp();
|
pendingWithoutSimapp();
|
||||||
if (simapp50Enabled()) pending("Not working, see https://github.com/cosmos/cosmos-sdk/issues/18546");
|
// if (simapp50Enabled()) pending("Not working, see https://github.com/cosmos/cosmos-sdk/issues/18546");
|
||||||
|
|
||||||
const valWallet = await Secp256k1HdWallet.generate();
|
const valWallet = await Secp256k1HdWallet.generate();
|
||||||
const [valAccount] = await valWallet.getAccounts();
|
const [valAccount] = await valWallet.getAccounts();
|
||||||
@ -235,9 +234,9 @@ describe("staking messages", () => {
|
|||||||
client.disconnect();
|
client.disconnect();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("works with Amino JSON sign mode", async () => {
|
fit("works with Amino JSON sign mode", async () => {
|
||||||
pendingWithoutSimapp();
|
pendingWithoutSimapp();
|
||||||
if (simapp50Enabled()) pending("Not working, see https://github.com/cosmos/cosmos-sdk/issues/18546");
|
// if (simapp50Enabled()) pending("Not working, see https://github.com/cosmos/cosmos-sdk/issues/18546");
|
||||||
|
|
||||||
const valWallet = await Secp256k1HdWallet.generate();
|
const valWallet = await Secp256k1HdWallet.generate();
|
||||||
const [valAccount] = await valWallet.getAccounts();
|
const [valAccount] = await valWallet.getAccounts();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user