Skip to content

Commit bddcb69

Browse files
authored
[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 5fcbb4c.
1 parent 04d8a46 commit bddcb69

File tree

1 file changed

+2
-2
lines changed
  • third_party/pyth/multisig-wh-message-builder/src

1 file changed

+2
-2
lines changed

third_party/pyth/multisig-wh-message-builder/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
SystemProgram,
1010
TransactionInstruction,
1111
} from "@solana/web3.js";
12-
import Squads from "@sqds/mesh";
12+
import Squads, { DEFAULT_MULTISIG_PROGRAM_ID, getMsPDA } from "@sqds/mesh";
1313
import { getIxAuthorityPDA } from "@sqds/mesh";
1414
import { InstructionAccount } from "@sqds/mesh/lib/types";
1515
import bs58 from "bs58";
@@ -125,7 +125,7 @@ program
125125
cluster == "localdevnet" ? options.solanaRpc : undefined
126126
);
127127

128-
let vaultAddr = CONFIG[cluster].vault;
128+
let vaultAddr = getMsPDA(createKeyAddr, DEFAULT_MULTISIG_PROGRAM_ID)[0];
129129
console.log("Creating new vault at", vaultAddr.toString());
130130

131131
try {

0 commit comments

Comments
 (0)