Skip to content

Commit

Permalink
fix: update imports after typo
Browse files Browse the repository at this point in the history
  • Loading branch information
pLabarta committed Jul 14, 2023
1 parent 4baf581 commit 31691c2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions scripts/cc-cli/src/commands/balance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Command, OptionValues } from "commander";
import { newApi } from "../api";
import { getBalance, logBalance } from "../utils/balance";
import {
parseAddresOrExit,
parseAddressOrExit,
parseBoolean,
requiredInput,
} from "../utils/parsing";
Expand All @@ -20,7 +20,7 @@ async function balanceAction(options: OptionValues) {
const json = parseBoolean(options.json);
const { api } = await newApi(options.url);

const address = parseAddresOrExit(
const address = parseAddressOrExit(
requiredInput(
options.address,
"Failed to show balance: Must specify an address"
Expand Down
4 changes: 2 additions & 2 deletions scripts/cc-cli/src/commands/bond.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
import { BN } from "creditcoin-js";
import {
inputOrDefault,
parseAddresOrExit,
parseAddressOrExit,
parseAmountOrExit,
parseBoolean,
parseChoiceOrExit,
Expand Down Expand Up @@ -97,7 +97,7 @@ function parseOptions(options: OptionValues) {
);
checkAmount(amount);

const controller = parseAddresOrExit(
const controller = parseAddressOrExit(
requiredInput(
options.controller,
"Failed to bond: Must specify a controller address"
Expand Down
4 changes: 2 additions & 2 deletions scripts/cc-cli/src/commands/distributeRewards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
} from "../utils/account";
import { signSendAndWatch } from "../utils/tx";
import {
parseAddresOrExit,
parseAddressOrExit,
parseIntegerOrExit,
requiredInput,
} from "../utils/parsing";
Expand Down Expand Up @@ -43,7 +43,7 @@ async function distributeRewardsAction(options: OptionValues) {
}

function parseOptions(options: OptionValues) {
const validator = parseAddresOrExit(
const validator = parseAddressOrExit(
requiredInput(
options.validatorId,
"Failed to distribute rewards: Must specify a validator address"
Expand Down
4 changes: 2 additions & 2 deletions scripts/cc-cli/src/commands/send.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import { getBalance } from "../utils/balance";
import { signSendAndWatch } from "../utils/tx";
import {
parseAddresOrExit,
parseAddressOrExit,
parseAmountOrExit,
parseBoolean,
requiredInput,
Expand Down Expand Up @@ -53,7 +53,7 @@ function parseOptions(options: OptionValues) {
requiredInput(options.amount, "Failed to send CTC: Must specify an amount")
);

const recipient = parseAddresOrExit(
const recipient = parseAddressOrExit(
requiredInput(options.to, "Failed to send CTC: Must specify a recipient")
);

Expand Down
4 changes: 2 additions & 2 deletions scripts/cc-cli/src/commands/status.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Command, OptionValues } from "commander";
import { newApi } from "../api";
import { getStatus, printValidatorStatus } from "../utils/status";
import { parseAddresOrExit, requiredInput } from "../utils/parsing";
import { parseAddressOrExit, requiredInput } from "../utils/parsing";

export function makeStatusCommand() {
const cmd = new Command("status");
Expand All @@ -15,7 +15,7 @@ async function statusAction(options: OptionValues) {
const { api } = await newApi(options.url);

// Check options
const address = parseAddresOrExit(
const address = parseAddressOrExit(
requiredInput(
options.address,
"Failed to show validator status: Must specify an address"
Expand Down

0 comments on commit 31691c2

Please sign in to comment.