Print some Amino sign docs

This commit is contained in:
Simon Warta 2024-01-26 14:14:21 +01:00
parent 287278004b
commit ae7734e450
3 changed files with 8 additions and 8 deletions

View File

@ -98,5 +98,7 @@ export function escapeCharacters(input: string): string {
export function serializeSignDoc(signDoc: StdSignDoc): Uint8Array {
const serialized = escapeCharacters(sortedJsonStringify(signDoc));
// eslint-disable-next-line no-console
console.log("Sign doc serialized:", serialized);
return toUtf8(serialized);
}

View File

@ -13,7 +13,6 @@ import {
nonNegativeIntegerMatcher,
pendingWithoutSimapp,
simapp,
simapp50Enabled,
simappEnabled,
validator,
} from "../../testutils.spec";
@ -206,9 +205,9 @@ describe("gov messages", () => {
client.disconnect();
});
it("works with Amino JSON sign mode", async () => {
fit("works with Amino JSON sign mode", async () => {
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(proposalId, "Missing proposal ID");
const client = await SigningStargateClient.connectWithSigner(

View File

@ -12,7 +12,6 @@ import {
faucet,
pendingWithoutSimapp,
simapp,
simapp50Enabled,
} from "../../testutils.spec";
import { MsgCreateValidatorEncodeObject, MsgEditValidatorEncodeObject } from "./messages";
@ -94,9 +93,9 @@ describe("staking messages", () => {
client.disconnect();
});
it("works with Amino JSON sign mode", async () => {
fit("works with Amino JSON sign mode", async () => {
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 [valAccount] = await valWallet.getAccounts();
@ -235,9 +234,9 @@ describe("staking messages", () => {
client.disconnect();
});
it("works with Amino JSON sign mode", async () => {
fit("works with Amino JSON sign mode", async () => {
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 [valAccount] = await valWallet.getAccounts();