[multisig-cli] Refactor check that multisig vault already exists (#437)
* Refactor check that multisig vault already exists * [Multisig] add transfer auth to multisig (#439) * Checkpoint * Cleanup * Revert "[Multisig] add transfer auth to multisig (#439)" (#440) This reverts commit 5fcbb4ca1f071f9da98946aededc2174f3e917bb.
This commit is contained in:
parent
04d8a468ac
commit
bddcb69351
|
@ -9,7 +9,7 @@ import {
|
||||||
SystemProgram,
|
SystemProgram,
|
||||||
TransactionInstruction,
|
TransactionInstruction,
|
||||||
} from "@solana/web3.js";
|
} from "@solana/web3.js";
|
||||||
import Squads from "@sqds/mesh";
|
import Squads, { DEFAULT_MULTISIG_PROGRAM_ID, getMsPDA } from "@sqds/mesh";
|
||||||
import { getIxAuthorityPDA } from "@sqds/mesh";
|
import { getIxAuthorityPDA } from "@sqds/mesh";
|
||||||
import { InstructionAccount } from "@sqds/mesh/lib/types";
|
import { InstructionAccount } from "@sqds/mesh/lib/types";
|
||||||
import bs58 from "bs58";
|
import bs58 from "bs58";
|
||||||
|
@ -125,7 +125,7 @@ program
|
||||||
cluster == "localdevnet" ? options.solanaRpc : undefined
|
cluster == "localdevnet" ? options.solanaRpc : undefined
|
||||||
);
|
);
|
||||||
|
|
||||||
let vaultAddr = CONFIG[cluster].vault;
|
let vaultAddr = getMsPDA(createKeyAddr, DEFAULT_MULTISIG_PROGRAM_ID)[0];
|
||||||
console.log("Creating new vault at", vaultAddr.toString());
|
console.log("Creating new vault at", vaultAddr.toString());
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue