Skip to content
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

add create indempotent when an account is not initialized #136

Merged
merged 3 commits into from
Jun 3, 2024
Merged

Conversation

swaggymarie
Copy link
Contributor

No description provided.

@swaggymarie swaggymarie marked this pull request as ready for review June 2, 2024 20:01
Copy link
Member

@R-K-H R-K-H left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewing this ASAP, needs a bit of work but will have it revised and submitted.

@@ -276,10 +277,12 @@ export class FutarchyRPCProposalsClient implements FutarchyProposalsClient {
proposal: Proposal,
underlyingToken: "base" | "quote"
) {
const user = new PublicKey("DygGNcj9iGYrWX7UX1wvoAQcvkaJDKhguvb5NS3wjV9f")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't keep this in here.

Comment on lines 334 to 335
const passVaultInfo = await this.rpcProvider.connection.getAccountInfo(accounts.userConditionalOnFinalizeTokenAccount);
const failVaultInfo = await this.rpcProvider.connection.getAccountInfo(accounts.userConditionalOnRevertTokenAccount);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't we just assume that the vaults exist? RPC calls are expensive

@R-K-H R-K-H merged commit 9fb7da6 into main Jun 3, 2024
1 check passed
@R-K-H R-K-H deleted the fix/withdraw branch June 3, 2024 05:39
kilgaloon pushed a commit that referenced this pull request Aug 6, 2024
* add create indempotent when an account is not initialized

* feat: adds instruction regardless, update package

* fix: rename function to relay details

---------

Co-authored-by: Kollan House <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants