-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
check for Proposal status is broken #17
Comments
squads-v4-public-ui/components/ApproveButton.tsx Lines 52 to 72 in 0a8e6d8
The value for
When we log the transactions array in the component, they have the following structure:
As you can see, when the Proposal Account does not yet exist, it will be evaluated to The fix is to update the line that evaluates the status from
to
|
This is for devnet. To reproduce, use the SDK to call
multisig.rpc.vaultTransactionCreate
Then, on the UI, attempt to click Approve. Wallet will show a warning saying the transaction will fail.
Proceed anyway, and view the resulting error. It will state in the logs:
So it seems that clicking Approve for a transaction whose Proposal Account has not yet been created does not trigger a Proposal Create instruction as it should be.
While code exists that should prevent this, it seems to not be working as expected.
The text was updated successfully, but these errors were encountered: