Squads-Protocol / v4

Squads V4
https://v4-sdk-typedoc.vercel.app
GNU Affero General Public License v3.0
89 stars 33 forks source link

instructions.vaultTransactionExecute issue #136

Open RokoTechnology opened 2 weeks ago

RokoTechnology commented 2 weeks ago

using @sqds/multisig 2.1.3 i run

    const ix = await multisig.instructions.vaultTransactionExecute({
      multisigPda: new PublicKey(multisigAddress),
      transactionIndex,
      member: new PublicKey(memberAddress),
    })

and receive error

TypeError: Cannot read properties of undefined (reading 'getAccountInfo')
    at _VaultTransaction.fromAccountAddress (file:///Users/mikenova/repos/trade-relay/node_modules/@sqds/multisig/lib/index.mjs:1547:42)
    at Object.vaultTransactionExecute (file:///Users/mikenova/repos/trade-relay/node_modules/@sqds/multisig/lib/index.mjs:6063:53)

which looks like default connection is not getting injected into the function. this error is not happening for multisig.instructions.vaultTransactionCreate, multisig.instructions.proposalCreate, etc.

i did a workaround by just passing my own connection into the method but having issues compiling the resulting instruction, maybe that could also be related.

RokoTechnology commented 2 weeks ago

ended up doing multisig.transactions.vaultTransactionExecute and decompiling