Skip to content

Commit

Permalink
update check bin command
Browse files Browse the repository at this point in the history
  • Loading branch information
perfogic committed Oct 1, 2024
1 parent 0914afb commit 20b17d7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/orchestrator/src/bin/check.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { AppBitcoinClient } from "@oraichain/bitcoin-bridge-contracts-sdk";
import env from "../configs/env";
import { OraichainConfig } from "../configs/networks";
import { convertToOtherAddress, initSignerClient } from "../utils/cosmos";
import { initSignerClient } from "../utils/cosmos";
import { decryptMnemonic } from "../utils/mnemonic";

const main = async () => {
Expand All @@ -21,14 +21,13 @@ const main = async () => {
prefix,
gasPrice
);
const valAddress = convertToOtherAddress(sender);
const appBitcoinClient = new AppBitcoinClient(
client,
sender,
env.cosmos.appBitcoin
);
const isEligible = await appBitcoinClient.checkEligibleValidator({
valAddr: valAddress,
valAddr: sender,
});
if (isEligible) {
console.log("You are eligible to be a signer");
Expand Down

0 comments on commit 20b17d7

Please sign in to comment.