Remove console.log, fix linter errors
This commit is contained in:
@@ -169,8 +169,6 @@ describe("CosmosConnection", () => {
|
||||
expect(account.address).toEqual(defaultAddress);
|
||||
// Undefined until we sign a transaction (on multiple runs against one server this will be set), allow both
|
||||
if (account.pubkey !== undefined) {
|
||||
console.log(`account: ${account.pubkey.data.length}`, account.pubkey);
|
||||
console.log(`default: ${defaultPubkey.data.length}`, defaultPubkey);
|
||||
expect(account.pubkey).toEqual(defaultPubkey);
|
||||
}
|
||||
// Starts with two tokens
|
||||
|
||||
@@ -19,7 +19,6 @@ import {
|
||||
Nonce,
|
||||
PostableBytes,
|
||||
PostTxResponse,
|
||||
PubkeyBundle,
|
||||
PubkeyBytes,
|
||||
PubkeyQuery,
|
||||
Token,
|
||||
@@ -29,7 +28,7 @@ import {
|
||||
TransactionState,
|
||||
UnsignedTransaction,
|
||||
} from "@iov/bcp";
|
||||
import { Bech32, Encoding, Uint53 } from "@iov/encoding";
|
||||
import { Uint53 } from "@iov/encoding";
|
||||
import { DefaultValueProducer, ValueAndUpdates } from "@iov/stream";
|
||||
import equal from "fast-deep-equal";
|
||||
import { ReadonlyDate } from "readonly-date";
|
||||
@@ -41,8 +40,6 @@ import { decodeAmount, parseTxsResponse } from "./decode";
|
||||
import { RestClient, TxsResponse } from "./restclient";
|
||||
import { accountToNonce, TokenInfos } from "./types";
|
||||
|
||||
const { fromBase64 } = Encoding;
|
||||
|
||||
interface ChainData {
|
||||
readonly chainId: ChainId;
|
||||
}
|
||||
@@ -152,7 +149,6 @@ export class CosmosConnection implements BlockchainConnection {
|
||||
this.tokenInfo.find(token => token.denom === denom),
|
||||
);
|
||||
|
||||
console.log(account.public_key);
|
||||
const pubkey = !account.public_key
|
||||
? undefined
|
||||
: {
|
||||
|
||||
@@ -55,6 +55,7 @@ export interface NonceInfo {
|
||||
|
||||
// this (lossily) encodes the two pieces of info (uint64) needed to sign into
|
||||
// one (53-bit) number. Cross your fingers.
|
||||
/* eslint-disable-next-line @typescript-eslint/camelcase */
|
||||
export function accountToNonce({ account_number, sequence }: NonceInfo): Nonce {
|
||||
const acct = parseInt(account_number, 10);
|
||||
const seq = parseInt(sequence, 10);
|
||||
|
||||
Reference in New Issue
Block a user