Revert "Check if multisig"

This reverts commit 44e9569184.
This commit is contained in:
abefernan
2023-04-18 09:30:13 +02:00
parent 44e9569184
commit a676f96d85
+4 -5
View File
@@ -1,4 +1,4 @@
import { MultisigThresholdPubkey, SinglePubkey, isMultisigThresholdPubkey } from "@cosmjs/amino";
import { MultisigThresholdPubkey, SinglePubkey } from "@cosmjs/amino";
import { Account, StargateClient } from "@cosmjs/stargate";
import { assert } from "@cosmjs/utils";
import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
@@ -49,10 +49,9 @@ const Multipage = () => {
assert(state.chain.denom, "denom missing");
const tempHoldings = await client.getAllBalances(address);
setHoldings(tempHoldings);
const [newPubkey, newAccountOnChain] = await getMultisigAccount(address, client);
assert(isMultisigThresholdPubkey(newPubkey), "pubkey is not multisig");
setPubkey(newPubkey);
setAccountOnChain(newAccountOnChain);
const result = await getMultisigAccount(address, client);
setPubkey(result[0]);
setAccountOnChain(result[1]);
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} catch (error: any) {
setAccountError(error.message);