Skip to content

Commit

Permalink
fix: multisig:approve needed to actually execute the tx
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Nov 29, 2022
1 parent e6bdee3 commit 551c510
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@ export default class Approve extends SolanaCommand {

//execute not needed, this command cannot be ran outside of multisig
execute = async () => {
return {} as Result<TransactionResponse>
const rawTx = await this.makeRawTransaction(this.wallet.publicKey)
const txhash = await this.signAndSendRawTx(rawTx)
const multisigAddress = new PublicKey(process.env.MULTISIG_ADDRESS || '').toString()
logger.success(`Approved transactions on tx hash: ${txhash}`)

return {
responses: [
{
tx: this.wrapResponse(txhash, multisigAddress),
contract: multisigAddress,
},
],
} as Result<TransactionResponse>
}
}

0 comments on commit 551c510

Please sign in to comment.